// // GameStatsManager::getDemonLevelKey from 0x40c8e4 to 0x40c922 (62 bytes) // // 4 xrefs: // > GameStatsManager::hasCompletedDemonLevel @ 0x40c98e // > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x41972a // > GameStatsManager::uncompleteLevel @ 0x4197de // > GameStatsManager::completedDemonLevel @ 0x41bc18 // // 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::getDemonLevelKey(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 = "gdemon_%i"; else v4 = "demon_%i"; v3 = (const char *)(random - seed); } else { v4 = "ddemon_%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