// // GameStatsManager::completedMapPack from 0x8e9d20 to 0x8e9e78 (344 bytes) // // 3 xrefs: // > MapPackCell::onClaimReward @ 0x73b56c // > GJAccountManager::onSyncAccountCompleted @ 0x98a13c // > @ 0x9ae70 // // 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::completedMapPack(cocos2d::CCObject **this, GJMapPack *a2) { const char *MapPackKey; // x0 size_t v6; // x0 __int64 v7; // x24 cocos2d::CCObject *v8; // x23 int v9; // w22 int v10; // w23 char *v11; // [xsp+48h] [xbp+48h] __int64 v12[2]; // [xsp+50h] [xbp+50h] BYREF void *v13; // [xsp+60h] [xbp+60h] if ( !GameStatsManager::hasCompletedMapPack((GameStatsManager *)this, (const char *)*((unsigned int *)a2 + 82)) ) { MapPackKey = (const char *)GameStatsManager::getMapPackKey( (GameStatsManager *)this, (const char *)*((unsigned int *)a2 + 82)); v12[0] = 0; v11 = (char *)MapPackKey; v12[1] = 0; v13 = nullptr; v6 = strlen(MapPackKey); v7 = (__int64)*(this + 76); v8 = *(this + 40); std::string::__init(v12, v11, v6); cocos2d::CCDictionary::setObject(v7, v8); if ( (v12[0] & 1) != 0 ) operator delete(v13); if ( (int)GJMapPack::totalMaps(a2) > 2 ) { v9 = *((_DWORD *)a2 + 84); v10 = *((_DWORD *)a2 + 85); if ( v9 >= 11 ) v9 = 0; if ( v10 >= 3 ) v10 = 0; GameStatsManager::incrementStat((GameStatsManager *)this, "6", v9); GameStatsManager::incrementStat((GameStatsManager *)this, "8", v10); GameStatsManager::incrementStat((GameStatsManager *)this, "7"); GameStatsManager::setStarsForMapPack((GameStatsManager *)this, *((_DWORD *)a2 + 82), (char *)(unsigned int)v9); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source