// // GameStatsManager::completedDemonLevel from 0x529338 to 0x5293ce (150 bytes) // // 4 xrefs: // > GameManager::dataLoaded @ 0x41cdec // > LevelInfoLayer::init @ 0x49efa2 // > GameLevelManager::updateLevelRewards @ 0x4ab46a // > GameStatsManager::completedLevel @ 0x52a030 // // 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:51:58 +0000 // GameManager *__fastcall GameStatsManager::completedDemonLevel(GameStatsManager *this, GJGameLevel *a2, int a3, int a4) { GameManager *result; // r0 const char *DemonLevelKey; // r0 int v8; // r9 cocos2d::CCObject *v9; // r8 const char *v10; // r10 size_t v11; // r0 GameStatsManager *v12; // [sp+0h] [bp-10h] BYREF GJGameLevel *v13; // [sp+4h] [bp-Ch] int v14; // [sp+8h] [bp-8h] int v15; // [sp+Ch] [bp-4h] v12 = this; v13 = a2; v14 = a3; v15 = a4; result = (GameManager *)GameStatsManager::hasCompletedDemonLevel(this, a2); if ( !result && *((_DWORD *)a2 + 189) - *((_DWORD *)a2 + 190) == 1 ) { DemonLevelKey = (const char *)GameStatsManager::getDemonLevelKey(this, a2); v12 = nullptr; v13 = nullptr; v14 = 0; v8 = *((_DWORD *)this + 103); v9 = *((cocos2d::CCObject **)this + 66); v10 = DemonLevelKey; v11 = strlen(DemonLevelKey); std::string::__init((int *)&v12, v10, v11); cocos2d::CCDictionary::setObject(v8, v9); result = (GameManager *)std::string::~string((int)&v12); if ( *((_DWORD *)a2 + 193) - *((_DWORD *)a2 + 194) > 9 ) return GameStatsManager::incrementStat(this, (const char *)&a1i2r3e45s789g[7]); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source