// // GameLevelManager::getCompletedEventLevels from 0x4ad5cc to 0x4ad6c2 (246 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x4d6616 // > GameLevelManager::updateUserScore @ 0x4d6734 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:50:00 +0000 // int __fastcall GameLevelManager::getCompletedEventLevels(cocos2d::CCDictionary **this, int a2, int a3) { int v5; // r0 int *v6; // r3 int v7; // r4 cocos2d::CCString **v8; // r5 int v9; // r3 cocos2d::CCString **v10; // r11 cocos2d::CCString *v11; // r2 cocos2d::CCString *v12; // t1 int v14; // r9 const char *CString; // r0 size_t v16; // r0 const void *v17; // r0 GJGameLevel *v18; // r9 int v19; // r3 GameStatsManager *v20; // r0 cocos2d::CCString *v22; // [sp+Ch] [bp-18h] cocos2d::CCString *v23; // [sp+Ch] [bp-18h] int v24[3]; // [sp+10h] [bp-14h] BYREF v5 = cocos2d::CCDictionary::allKeys(*(this + 147)); if ( !v5 ) return 0; v6 = *(int **)(v5 + 52); v7 = *v6; if ( *v6 ) { v8 = (cocos2d::CCString **)v6[3]; v9 = v7 + 0x3FFFFFFF; v7 = 0; v10 = &v8[v9]; while ( v8 <= v10 ) { v12 = *v8++; v11 = v12; if ( !v12 ) break; v22 = v11; if ( (int)cocos2d::CCString::intValue(v11) > 200000 ) { v14 = (int)*(this + 147); CString = (const char *)cocos2d::CCString::getCString(v22); memset(v24, 0, sizeof(v24)); v23 = (cocos2d::CCString *)CString; v16 = strlen(CString); std::string::__init(v24, v23, v16); v17 = (const void *)cocos2d::CCDictionary::objectForKey(v14, v24); if ( v17 ) v18 = (GJGameLevel *)_dynamic_cast( v17, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v18 = nullptr; std::string::~string((int)v24); if ( v18 ) { v19 = *((_DWORD *)v18 + 193) - *((_DWORD *)v18 + 194); if ( v19 >= a2 && v19 <= a3 && GJGameLevel::getNormalPercent(v18) == 100 ) { v20 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)&dword_64); if ( GameStatsManager::hasCompletedLevel(v20, v18) ) ++v7; } } } } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source