// // GameLevelManager::getCompletedLevels from 0x10009776c to 0x100097874 (264 bytes) // // 2 xrefs: // > GameLevelManager::getOnlineLevels @ 0x10009d5ec // > GameLevelManager::submitUserInfo @ 0x1000a2b58 // // 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::getCompletedLevels(GameLevelManager *a1, bool a2) { _BOOL4 v2; // w19 cocos2d::CCArray *v4; // x21 cocos2d::CCArray *v5; // x22 unsigned int v6; // w24 int v7; // w25 int v8; // w0 cocos2d::CCString *v9; // x0 char *CString; // x0 cocos2d::CCDictionary *m_onlineLevels; // x23 _DWORD *v12; // x23 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v15; // [xsp+1Fh] [xbp-41h] v2 = a2; v4 = (cocos2d::CCArray *)sub_10024A15C(a1); v5 = cocos2d::CCDictionary::allKeys(a1->m_onlineLevels); if ( (unsigned int)sub_10024A36C(v5) ) { v6 = 0; v7 = -1; do { v8 = sub_10024A36C(v5); v9 = (cocos2d::CCString *)sub_10024A388(v5, (unsigned int)(v8 + v7)); CString = (char *)cocos2d::CCString::getCString(v9); m_onlineLevels = a1->m_onlineLevels; sub_100009900(__p, CString); v12 = (_DWORD *)cocos2d::CCDictionary::objectForKey_1(m_onlineLevels, __p); if ( v15 < 0 ) { operator delete(__p[0]); if ( v2 ) { LABEL_5: if ( v12[187] - v12[188] <= 99 ) goto LABEL_10; LABEL_9: sub_10024A2D0(v4, v12); goto LABEL_10; } } else if ( v2 ) { goto LABEL_5; } if ( v12[186] - v12[185] >= 100 ) goto LABEL_9; LABEL_10: ++v6; --v7; } while ( v6 < (unsigned int)sub_10024A36C(v5) ); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source