// // GameStatsManager::getCompletedMapPacks from 0x40cb50 to 0x40cc38 (232 bytes) // // 1 xrefs: // > GameManager::recountUserStats @ 0x3282d8 // // 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 *GameStatsManager::getCompletedMapPacks(GameStatsManager *a1) { unsigned int v1; // r7 cocos2d::CCArray *v2; // r9 cocos2d::CCArray *v3; // r8 cocos2d::CCString *v4; // r0 char *CString; // r0 cocos2d::CCArray *v6; // r10 cocos2d::CCString *v7; // r0 char *v8; // r0 cocos2d::CCObject *v9; // r0 int v11; // [sp+Ch] [bp-20h] int v12; // [sp+18h] [bp-14h] BYREF _BYTE v13[4]; // [sp+1Ch] [bp-10h] BYREF _BYTE v14[4]; // [sp+20h] [bp-Ch] BYREF v1 = 0; v2 = cocos2d::CCDictionary::allKeys(a1->m_completedLevels); v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); while ( v1 < cocos2d::CCArray::count(v2) ) { v4 = cocos2d::CCArray::stringAtIndex(v2, v1); CString = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)&v12, CString); v6 = sub_40C12C((cocos2d::CCArray *)&v12, "_"); if ( cocos2d::CCArray::count(v6) == 2 ) { v7 = cocos2d::CCArray::stringAtIndex(v6, 0); v8 = (char *)cocos2d::CCString::getCString(v7); sub_776584((int)v13, v8); sub_776584((int)v14, "pack"); v11 = sub_774DBC(v13, v14); sub_774008(v14); if ( !v11 ) { v9 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v6, 1u); cocos2d::CCArray::addObject(v3, v9); } sub_774008(v13); } ++v1; sub_774008(&v12); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source