// // GameLevelManager::getSavedLevels from 0x1000973cc to 0x1000974f8 (300 bytes) // // 4 xrefs: // > GameLevelManager::limitSavedLevels @ 0x100099e58 // > LevelBrowserLayer::loadPage @ 0x1004171c0 // > LevelBrowserLayer::FLAlert_Clicked @ 0x1004195a0 // > LevelBrowserLayer::FLAlert_Clicked @ 0x1004195d4 // // 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 // cocos2d::CCArray *__fastcall GameLevelManager::getSavedLevels(GameLevelManager *a1, bool a2, int a3) { _BOOL4 v4; // w21 cocos2d::CCArray *v6; // x19 cocos2d::CCArray *v7; // x23 unsigned int v8; // w25 int v9; // w26 int v10; // w0 cocos2d::CCString *v11; // x0 char *CString; // x0 cocos2d::CCDictionary *m_onlineLevels; // x24 __int64 v14; // x24 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v17; // [xsp+1Fh] [xbp-41h] v4 = a2; v6 = (cocos2d::CCArray *)sub_10024A15C(a1); v7 = cocos2d::CCDictionary::allKeys(a1->m_onlineLevels); if ( (unsigned int)sub_10024A36C(v7) ) { v8 = 0; v9 = -1; do { v10 = sub_10024A36C(v7); v11 = (cocos2d::CCString *)sub_10024A388(v7, (unsigned int)(v10 + v9)); CString = (char *)cocos2d::CCString::getCString(v11); m_onlineLevels = a1->m_onlineLevels; sub_100009900(__p, CString); v14 = cocos2d::CCDictionary::objectForKey_1(m_onlineLevels, __p); if ( v17 < 0 ) operator delete(__p[0]); if ( (*(_BYTE *)(v14 + 993) & 1) == 0 && (!v4 || *(_BYTE *)(v14 + 796) == 1) && (a3 < 1 || *(_DWORD *)(v14 + 800) == a3) ) { sub_10024A2D0(v6, v14); } ++v8; --v9; } while ( v8 < (unsigned int)sub_10024A36C(v7) ); } if ( (unsigned int)sub_10024A36C(v6) ) qsort(v6->data->arr, v6->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_100087A3C); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source