// // GameStatsManager::completedStarLevel from 0x100330f5c to 0x100331050 (244 bytes) // // 4 xrefs: // > LevelInfoLayer::init @ 0x100025888 // > GameLevelManager::updateLevelRewards @ 0x100093a6c // > GameManager::verifyStarUnlocks @ 0x100313ee0 // > GameStatsManager::completedLevel @ 0x100330e4c // // 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::completedStarLevel(GameStatsManager *a1, GJGameLevel *a2) { _BOOL8 hasCompletedStarLevel; // x0 char *StarLevelKey; // x0 cocos2d::CCDictionary *m_completedLevels; // x21 cocos2d::CCString *m_trueString; // x22 int v8; // w2 const char *v9; // x1 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v11; // [xsp+1Fh] [xbp-21h] hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(a1, a2); if ( !hasCompletedStarLevel && a2->m_stars.random > a2->m_stars.seed ) { StarLevelKey = (char *)GameStatsManager::getStarLevelKey((GameStatsManager *)hasCompletedStarLevel, a2); m_completedLevels = a1->m_completedLevels; m_trueString = a1->m_trueString; sub_100009900(__p, StarLevelKey); cocos2d::CCDictionary::setObject_1(m_completedLevels, m_trueString, __p); if ( v11 < 0 ) operator delete(__p[0]); v8 = a2->m_stars.random - a2->m_stars.seed; if ( v8 >= 11 && a2->m_levelType != Main ) v8 = 0; if ( a2->m_levelLength == 5 ) v9 = "28"; else v9 = "6"; GameStatsManager::incrementStat(a1, v9, v8); if ( ((a2->m_stars.random - a2->m_stars.seed) & 0xFFFFFFFE) == 8 ) GameStatsManager::incrementStat(a1, "42", 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source