// // GameLevelManager::getCompletedLevels from 0x3c6ad0 to 0x3c6b7e (174 bytes) // // 2 xrefs: // > GameLevelManager::getOnlineLevels @ 0x3d4786 // > GameLevelManager::submitUserInfo @ 0x3d4b98 // // 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 *GameLevelManager::getCompletedLevels(GameLevelManager *a1, bool a2) { unsigned int v3; // r6 cocos2d::CCArray *v4; // r7 cocos2d::CCArray *v5; // r8 int v6; // r0 cocos2d::CCString *v7; // r0 char *CString; // r0 cocos2d::CCDictionary *m_onlineLevels; // r10 GJGameLevel *v10; // r10 bool v11; // cc _BOOL4 v13; // [sp+4h] [bp-8h] std::string v14; // [sp+10h] [bp+4h] BYREF v13 = a2; v3 = 0; v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); v5 = cocos2d::CCDictionary::allKeys(a1->m_onlineLevels); while ( v3 < cocos2d::CCArray::count(v5) ) { v6 = cocos2d::CCArray::count(v5); v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v5, ~v3 + v6); CString = (char *)cocos2d::CCString::getCString(v7); m_onlineLevels = a1->m_onlineLevels; sub_776584((int)&v14, CString); v10 = (GJGameLevel *)cocos2d::CCDictionary::objectForKey(m_onlineLevels, &v14); sub_774008(&v14); if ( v13 ) v11 = v10->m_orbCompletion.random - v10->m_orbCompletion.seed <= 99; else v11 = GJGameLevel::getNormalPercent(v10) <= 99; if ( !v11 ) cocos2d::CCArray::addObject(v4, v10); ++v3; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source