// // GameLevelManager::getCompletedWeeklyLevels from 0x4ad3bc to 0x4ad4b6 (250 bytes) // // 1 xrefs: // > GameLevelManager::updateUserScore @ 0x4d65fe // // 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::getCompletedWeeklyLevels(cocos2d::CCDictionary **this) { int v2; // r0 int *v3; // r3 int v4; // r4 cocos2d::CCString **v5; // r5 int v6; // r10 cocos2d::CCString **v7; // r10 cocos2d::CCString *v8; // r2 cocos2d::CCString *v9; // t1 int v11; // r6 const char *CString; // r0 size_t v13; // r0 const void *v14; // r0 GJGameLevel *v15; // r6 GameStatsManager *v16; // r0 cocos2d::CCString *v17; // [sp+4h] [bp-18h] cocos2d::CCString *v18; // [sp+4h] [bp-18h] int v19[3]; // [sp+8h] [bp-14h] BYREF v2 = cocos2d::CCDictionary::allKeys(*(this + 147)); if ( !v2 ) return 0; v3 = *(int **)(v2 + 52); v4 = *v3; if ( *v3 ) { v5 = (cocos2d::CCString **)v3[3]; v6 = v4 + 0x3FFFFFFF; v4 = 0; v7 = &v5[v6]; while ( v5 <= v7 ) { v9 = *v5++; v8 = v9; if ( !v9 ) break; v17 = v8; if ( (unsigned int)(cocos2d::CCString::intValue(v8) - 100001) <= 0x1869F ) { v11 = (int)*(this + 147); CString = (const char *)cocos2d::CCString::getCString(v17); memset(v19, 0, sizeof(v19)); v18 = (cocos2d::CCString *)CString; v13 = strlen(CString); std::string::__init(v19, v18, v13); v14 = (const void *)cocos2d::CCDictionary::objectForKey(v11, v19); if ( v14 ) v15 = (GJGameLevel *)_dynamic_cast( v14, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v15 = nullptr; std::string::~string((int)v19); if ( v15 ) { if ( *((_DWORD *)v15 + 193) - *((_DWORD *)v15 + 194) == 10 && GJGameLevel::getNormalPercent(v15) == 100 ) { v16 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)&dword_64); if ( GameStatsManager::hasCompletedLevel(v16, v15) ) ++v4; } } } } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source