// // GameLevelManager::onGetLevelLeaderboardCompleted from 0x4d20dc to 0x4d21fe (290 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4daf4a // // 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:50:48 +0000 // int __fastcall GameLevelManager::onGetLevelLeaderboardCompleted(int a1, int a2, int a3) { char *v6; // r9 const char *v7; // r0 int v8; // r0 int v9; // r10 int v10; // r0 int result; // r0 cocos2d::CCObject *Scores; // r6 int v13; // [sp+4h] [bp-1Ch] BYREF int v14; // [sp+8h] [bp-18h] BYREF int v15; // [sp+Ch] [bp-14h] BYREF int v16[3]; // [sp+10h] [bp-10h] BYREF if ( (*(_BYTE *)a3 & 1) != 0 ) v6 = *(char **)(a3 + 8); else v6 = (char *)(a3 + 1); GameLevelManager::removeDLFromActive((GameLevelManager *)a1, v6); v13 = 0; v14 = 0; v15 = 0; std::string::basic_string(v16, a3); parseLevelLeaderboardKey((unsigned __int8 *)v16, &v13, &v14, &v15); std::string::~string((int)v16); if ( (*(_BYTE *)a2 & 1) != 0 ) v7 = *(const char **)(a2 + 8); else v7 = (const char *)(a2 + 1); v8 = atoi(v7); v9 = v8; if ( v14 == 4 ) { v10 = cocos2d::CCDictionary::objectForKey(*(_DWORD *)(a1 + 780), a3); if ( v10 && v9 >= 0 ) { if ( v15 ) { if ( v15 == 1 ) *(_BYTE *)(v10 + 1125) = 0; } else { *(_BYTE *)(v10 + 1124) = 0; } } return cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 780)); } else if ( v8 >= 0 ) { std::string::basic_string(v16, a2); Scores = GameLevelManager::createAndGetScores((cocos2d::CCArray *)a1, (int)v16, 3); std::string::~string((int)v16); memset(v16, 0, sizeof(v16)); std::string::__init(v16, " ", 1u); GameLevelManager::storeSearchResult((GameLevelManager *)a1, Scores, COERCE_FLOAT(v16), v6); std::string::~string((int)v16); result = *(_DWORD *)(a1 + 856); if ( result ) return (*(int (__fastcall **)(int, cocos2d::CCObject *, char *))(*(_DWORD *)result + 8))(result, Scores, v6); } else { result = *(_DWORD *)(a1 + 856); if ( result ) return (*(int (__fastcall **)(int, char *))(*(_DWORD *)result + 12))(result, v6); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source