// // GameStatsManager::completedStarLevel from 0x41bd64 to 0x41be22 (190 bytes) // // 4 xrefs: // > GameManager::verifyStarUnlocks @ 0x3214d2 // > LevelInfoLayer::init @ 0x3b54e4 // > GameLevelManager::updateLevelRewards @ 0x3c641c // > GameStatsManager::completedLevel @ 0x41beb0 // // 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 GameStatsManager::completedStarLevel(GameStatsManager *a1, GJGameLevel *a2) { char *StarLevelKey; // r0 cocos2d::CCDictionary *m_completedLevels; // r9 cocos2d::CCString *m_trueString; // r8 int v7; // r2 const char *v8; // r1 _BYTE v9[4]; // [sp+8h] [bp-Ch] BYREF if ( !GameStatsManager::hasCompletedStarLevel(a1, a2) && a2->m_stars.random - a2->m_stars.seed > 0 ) { StarLevelKey = (char *)GameStatsManager::getStarLevelKey(a1, a2); m_completedLevels = a1->m_completedLevels; m_trueString = a1->m_trueString; sub_776584((int)v9, StarLevelKey); cocos2d::CCDictionary::setObject((int)m_completedLevels, m_trueString); sub_774008(v9); v7 = a2->m_stars.random - a2->m_stars.seed; if ( v7 > 10 && a2->m_levelType != Main ) v7 = 0; if ( a2->m_levelLength == 5 ) v8 = "28"; else v8 = "6"; GameStatsManager::incrementStat(a1, v8, v7); if ( (unsigned int)(a2->m_stars.random - a2->m_stars.seed - 8) <= 1 ) GameStatsManager::incrementStat(a1, "42"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source