// // GameStatsManager::getDemonLevelKey from 0x7a1dfc to 0x7a1e70 (116 bytes) // // 5 xrefs: // > GameStatsManager::hasCompletedDemonLevel @ 0x7a1f0c // > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x7b58d8 // > GameStatsManager::uncompleteLevel @ 0x7b5b3c // > GameStatsManager::completedDemonLevel @ 0x7ba15c // > @ 0x91de8 // // 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) { int v2; // w0 _BOOL4 m_gauntletLevel; // w0 int random; // w2 int seed; // w1 cocos2d::CCString *v6; // x0 v2 = a2->m_dailyID.random - a2->m_dailyID.seed; if ( v2 > 0 ) { v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ddemon_%i", (const char *)(unsigned int)v2); } else { m_gauntletLevel = a2->m_gauntletLevel; random = a2->m_levelID.random; seed = a2->m_levelID.seed; if ( m_gauntletLevel ) v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"gdemon_%i", (const char *)(unsigned int)(random - seed)); else v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"demon_%i", (const char *)(unsigned int)(random - seed)); } return cocos2d::CCString::getCString(v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source