// // GameToolbox::doWeHaveInternet from 0x57f780 to 0x57f944 (452 bytes) // // 10 xrefs: // > MenuLayer::onTrailer @ 0x5c2af4 // > GameManager::rateGame @ 0x5eb228 // > GameManager::likeFacebook @ 0x5eb270 // > GameManager::followTwitter @ 0x5eb318 // > GameManager::subYouTube @ 0x5eb3c0 // > GameManager::followTwitch @ 0x5eb468 // > GameManager::joinDiscord @ 0x5eb510 // > GameManager::joinReddit @ 0x5eb5b8 // > SupportLayer::onEmail @ 0x7db38c // > @ 0xb1d08 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GameToolbox::doWeHaveInternet() { _BOOL4 isNetworkAvailable; // w1 bool result; // w0 FLAlertLayer *v2; // x22 void *v3; // x0 char *v4; // x0 unsigned int *v5; // x1 int v6; // w2 unsigned int *v7; // x1 int v8; // w2 char *v9; // [xsp+48h] [xbp+48h] BYREF __int64 v10; // [xsp+50h] [xbp+50h] BYREF isNetworkAvailable = PlatformToolbox::isNetworkAvailable(); result = 1; if ( !isNetworkAvailable ) { sub_D153B8((int)&v9, "No Internet Connection."); sub_D153B8((int)&v10, v9); v2 = FLAlertLayer::create(0, (__int64)"Error", (__int64)&v10); v3 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v10 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v3); } v2->show(v2); v4 = v9 - 24; if ( v9 - 24 == (char *)&qword_124B6B0 ) return 0; if ( &pthread_create ) { v5 = (unsigned int *)(v9 - 8); do v6 = __ldaxr(v5); while ( __stlxr(v6 - 1, v5) ); } else { v6 = *((_DWORD *)v9 - 2); *((_DWORD *)v9 - 2) = v6 - 1; } if ( v6 > 0 ) { return 0; } else { operator delete(v4); return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source