// // GameStatsManager::getStarLevelKey from 0x40c930 to 0x40c96e (62 bytes) // // 4 xrefs: // > GameStatsManager::hasCompletedStarLevel @ 0x40c9e2 // > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x4196fc // > GameStatsManager::uncompleteLevel @ 0x4197b6 // > GameStatsManager::completedStarLevel @ 0x41bd92 // // 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 // const char *GameStatsManager::getStarLevelKey(GameStatsManager *a1, GJGameLevel *a2) { const char *v3; // r1 char *v4; // r0 _BOOL4 m_gauntletLevel; // r2 int random; // r1 int seed; // r3 cocos2d::CCString *v8; // r0 v3 = (const char *)(a2->m_dailyID.random - a2->m_dailyID.seed); if ( (int)v3 <= 0 ) { m_gauntletLevel = a2->m_gauntletLevel; random = a2->m_levelID.random; seed = a2->m_levelID.seed; if ( m_gauntletLevel ) v4 = "gstar_%i"; else v4 = "star_%i"; v3 = (const char *)(random - seed); } else { v4 = "dstar_%i"; } v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v4, v3); return cocos2d::CCString::getCString(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source