fix: game freezes when starting without internet connection (ref #600)

This commit is contained in:
jeefo 2024-07-24 23:49:30 +03:00
commit c7d02f3f1d
No known key found for this signature in database
GPG key ID: D696786B81B667C8
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 3ef427c866ea6287bfbca602daa200a32cbedc6f Subproject commit a518be32e2ccf8e2ddb073fe237d1652cd8b185a

View file

@ -870,8 +870,8 @@ bool Game::postload () {
// set out user agent for http stuff // set out user agent for http stuff
http.setUserAgent (strings.format ("%s/%s", product.name, product.version)); http.setUserAgent (strings.format ("%s/%s", product.name, product.version));
// startup the sockets on windows // startup the sockets on windows and check if our host is available (hardcoded, yup)
http.startup (); http.startup ("yapb.jeefo.net", "Bot is unable to check network availability. Networking features are disabled.");
// set the app name // set the app name
plat.setAppName (product.name.chars ()); plat.setAppName (product.name.chars ());