//
// GameStatsManager::getDemonLevelKey from 0x1003309bc to 0x100330a30 (116 bytes)
//
// 4 xrefs:
// > GameStatsManager::hasCompletedDemonLevel @ 0x100330ca8
// > GameStatsManager::completedDemonLevel @ 0x100330ecc
// > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x1003310e0
// > GameStatsManager::uncompleteLevel @ 0x1003311ec
//
// 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 *__fastcall GameStatsManager::getDemonLevelKey(GameStatsManager *a1, GJGameLevel *a2)
{
cocos2d::CCString *v2; // x0
if ( a2->m_dailyID.random - a2->m_dailyID.seed < 1 )
{
if ( a2->m_gauntletLevel )
v2 = (cocos2d::CCString *)sub_100268F4C("gdemon_%i");
else
v2 = (cocos2d::CCString *)sub_100268F4C("demon_%i");
}
else
{
v2 = (cocos2d::CCString *)sub_100268F4C("ddemon_%i");
}
return cocos2d::CCString::getCString(v2);
}