// // GameStatsManager::completedLevel from 0x8e9bb8 to 0x8e9d20 (360 bytes) // // 6 xrefs: // > PlayLayer::levelComplete @ 0x703f20 // > GameLevelManager::dataLoaded @ 0x8603a4 // > GameLevelManager::dataLoaded @ 0x860508 // > GameLevelManager::dataLoaded @ 0x86063c // > GameLevelManager::dataLoaded @ 0x860800 // > @ 0x6d018 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:56:54 +0000 // __int64 __fastcall GameStatsManager::completedLevel(GameStatsManager *this, GJGameLevel *a2) { unsigned __int64 v5[3]; // [xsp+30h] [xbp+30h] BYREF GameStatsManager::getLevelKey(a2, v5); if ( !GameStatsManager::hasCompletedLevel(this, a2) ) { cocos2d::CCDictionary::setObject(*((_QWORD *)this + 76), *((cocos2d::CCObject **)this + 40)); if ( (unsigned int)(*((_DWORD *)a2 + 230) - *((_DWORD *)a2 + 231) - 1) <= 0x1869F ) { GameStatsManager::incrementStat(this, "15"); if ( *((_DWORD *)a2 + 233) - *((_DWORD *)a2 + 234) != 1 ) goto LABEL_3; goto LABEL_10; } if ( *((_DWORD *)a2 + 285) == 1 ) GameStatsManager::incrementStat(this, "3"); else GameStatsManager::incrementStat(this, &byte_11BCA00); } if ( *((_DWORD *)a2 + 233) - *((_DWORD *)a2 + 234) != 1 ) goto LABEL_3; LABEL_10: GameStatsManager::completedDemonLevel((cocos2d::CCObject **)this, a2); LABEL_3: if ( *((_DWORD *)a2 + 237) - *((_DWORD *)a2 + 238) > 0 ) GameStatsManager::completedStarLevel((cocos2d::CCObject **)this, a2); if ( (v5[0] & 1) != 0 ) operator delete((void *)v5[2]); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source