// // GameLevelManager::updateLevelOrders from 0x100097620 to 0x100097750 (304 bytes) // // 2 xrefs: // > GameLevelManager::encodeDataTo @ 0x10009ae10 // > GameLevelManager::encodeDataTo @ 0x10009ae18 // // 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 // void __fastcall GameLevelManager::updateLevelOrders(GameLevelManager *a1) { __int64 v2; // x19 cocos2d::CCArray *v3; // x21 unsigned int v4; // w23 int v5; // w24 int v6; // w0 cocos2d::CCString *v7; // x0 char *CString; // x0 cocos2d::CCDictionary *m_onlineLevels; // x22 __int64 v10; // x22 int v11; // w0 int v12; // w20 __int64 v13; // x21 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v15; // [xsp+1Fh] [xbp-31h] v2 = sub_10024A15C(a1); v3 = cocos2d::CCDictionary::allKeys(a1->m_onlineLevels); if ( (unsigned int)sub_10024A36C(v3) ) { v4 = 0; v5 = -1; do { v6 = sub_10024A36C(v3); v7 = (cocos2d::CCString *)sub_10024A388(v3, (unsigned int)(v6 + v5)); CString = (char *)cocos2d::CCString::getCString(v7); m_onlineLevels = a1->m_onlineLevels; sub_100009900(__p, CString); v10 = cocos2d::CCDictionary::objectForKey_1(m_onlineLevels, __p); if ( v15 < 0 ) operator delete(__p[0]); if ( (*(_BYTE *)(v10 + 993) & 1) != 0 ) *(_DWORD *)(v10 + 624) = 0; else sub_10024A2D0(v2, v10); ++v4; --v5; } while ( v4 < (unsigned int)sub_10024A36C(v3) ); } if ( (unsigned int)sub_10024A36C(v2) ) qsort( *(void **)(*(_QWORD *)(v2 + 56) + 16LL), **(unsigned int **)(v2 + 56), 8u, (int (__cdecl *)(const void *, const void *))sub_100087A3C); v11 = sub_10024A36C(v2); if ( v11 >= 1 ) { v12 = v11; v13 = 0; do { *(_DWORD *)(sub_10024A388(v2, v13) + 624) = v12; v13 = (unsigned int)(v13 + 1); --v12; } while ( v12 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source