// // GameStatsManager::markLevelAsCompletedAndClaimed from 0x10033106c to 0x10033113c (208 bytes) // // 1 xrefs: // > GameManager::recountUserStats @ 0x10031a004 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GameStatsManager::markLevelAsCompletedAndClaimed(GameStatsManager *a1, GJGameLevel *a2) { GameStatsManager *v4; // x0 char *StarLevelKey; // x0 cocos2d::CCDictionary *m_completedLevels; // x21 cocos2d::CCString *m_trueString; // x22 GameStatsManager *v8; // x0 char *DemonLevelKey; // x0 cocos2d::CCDictionary *v10; // x20 cocos2d::CCString *v11; // x19 void *__p[2]; // [xsp+0h] [xbp-50h] BYREF char v13; // [xsp+17h] [xbp-39h] void *v14; // [xsp+18h] [xbp-38h] BYREF char v15; // [xsp+2Fh] [xbp-21h] GameStatsManager::getLevelKey_1((__int64)a1, (__int64)a2); v4 = (GameStatsManager *)cocos2d::CCDictionary::setObject_1(a1->m_completedLevels, a1->m_trueString, &v14); StarLevelKey = (char *)GameStatsManager::getStarLevelKey(v4, a2); m_completedLevels = a1->m_completedLevels; m_trueString = a1->m_trueString; sub_100009900(__p, StarLevelKey); v8 = (GameStatsManager *)cocos2d::CCDictionary::setObject_1(m_completedLevels, m_trueString, __p); if ( v13 < 0 ) operator delete(__p[0]); DemonLevelKey = (char *)GameStatsManager::getDemonLevelKey(v8, a2); v10 = a1->m_completedLevels; v11 = a1->m_trueString; sub_100009900(__p, DemonLevelKey); cocos2d::CCDictionary::setObject_1(v10, v11, __p); if ( v13 < 0 ) operator delete(__p[0]); if ( v15 < 0 ) operator delete(v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source