// // LeaderboardsLayer::loadLeaderboardFailed from 0x5644fc to 0x5645f4 (248 bytes) // // 1 xrefs: // > `non-virtual thunk to'LeaderboardsLayer::loadLeaderboardFailed @ 0x564608 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:52:27 +0000 // int __fastcall LeaderboardsLayer::loadLeaderboardFailed(LeaderboardsLayer *this, const char *a2) { size_t v4; // r0 char *v5; // r2 int v6; // r3 _BOOL4 isCorrect; // r7 int result; // r0 PlatformToolbox *v9; // r0 int v10; // r7 int v11; // r3 int v12; // r7 int v13; // r7 int v14; // [sp+0h] [bp-14h] BYREF int v15; // [sp+4h] [bp-10h] int v16; // [sp+8h] [bp-Ch] v14 = 0; v15 = 0; v16 = 0; v4 = strlen(a2); std::string::__init(&v14, a2, v4); isCorrect = LeaderboardsLayer::isCorrect((int)this, (unsigned __int8 *)&v14, v5, v6); result = std::string::~string((int)&v14); if ( isCorrect ) { v9 = (PlatformToolbox *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 89) + 172))( *((_DWORD *)this + 89), 0); result = PlatformToolbox::isNetworkAvailable(v9); if ( result ) { v11 = *((_DWORD *)this + 83); if ( v11 == 4 ) { v12 = *((_DWORD *)this + 90); v14 = 0; v15 = 0; v16 = 0; std::string::__init(&v14, "Create an account to\ncompare scores\nwith Friends!", 0x41u); TextArea::setString(v12, &v14); } else { if ( v11 != 2 ) return result; v13 = *((_DWORD *)this + 90); v14 = 0; v15 = 0; v16 = 0; std::string::__init(&v14, "Create an account to\ncompare scores\n Online!", 0x3Cu); TextArea::setString(v13, &v14); } } else { v10 = *((_DWORD *)this + 90); v14 = 0; v15 = 0; v16 = 0; std::string::__init(&v14, "No Internet connection!", 0x1Fu); TextArea::setString(v10, &v14); } std::string::~string((int)&v14); return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 90) + 172))(*((_DWORD *)this + 90), 1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source