// // GameStatsManager::hasCompletedStarLevel from 0x1401de2a0 to 0x1401de3a6 (262 bytes) // // 7 xrefs: // > LevelCell::loadCustomLevelCell @ 0x1400af85a // > GameStatsManager::completedStarLevel @ 0x1401de78f // > LevelInfoLayer::updateLabelValues @ 0x1402ffc17 // > LevelPage::updateDynamicPage @ 0x14031af12 // > PlayLayer::levelComplete @ 0x1403a8471 // > @ 0x1406cc3f0 // > @ 0x1406cc3fc // // 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 // // Hidden C++ exception states: #wind=1 bool GameStatsManager::hasCompletedStarLevel(GameStatsManager *a1, GJGameLevel *a2) { cocos2d::CCString *v3; // rax const char *v4; // rcx const char *CString; // rax size_t v6; // r8 bool v7; // bl void *v8; // rcx void *Block[2]; // [rsp+20h] [rbp-38h] BYREF __int128 v11; // [rsp+30h] [rbp-28h] if ( a2->m_dailyID.random - a2->m_dailyID.seed <= 0 ) { v4 = "gstar_%i"; if ( !a2->m_gauntletLevel ) v4 = "star_%i"; v3 = cocos2d::CCString::createWithFormat(v4, (unsigned int)(a2->m_levelID.random - a2->m_levelID.seed)); } else { v3 = cocos2d::CCString::createWithFormat("dstar_%i", (unsigned int)(a2->m_dailyID.random - a2->m_dailyID.seed)); } CString = cocos2d::CCString::getCString(v3); *(_OWORD *)Block = 0; v11 = 0; v6 = -1; do ++v6; while ( CString[v6] ); sub_14003A930(Block, CString, v6); v7 = cocos2d::CCDictionary::objectForKey(a1->m_completedLevels, Block) != 0; if ( *((_QWORD *)&v11 + 1) > 0xFu ) { v8 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v8); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source