// // GameStatsManager::hasCompletedStarLevel from 0x7a1fe8 to 0x7a20ec (260 bytes) // // 6 xrefs: // > PlayLayer::levelComplete @ 0x5d11a8 // > LevelCell::loadCustomLevelCell @ 0x610574 // > LevelInfoLayer::updateLabelValues @ 0x6d9c6c // > LevelPage::updateDynamicPage @ 0x79f4b8 // > GameStatsManager::completedStarLevel @ 0x7ba4a0 // > @ 0x533b8 // // 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 // bool GameStatsManager::hasCompletedStarLevel(GameStatsManager *a1, GJGameLevel *a2) { cocos2d::CCDictionary *m_completedLevels; // x21 char *StarLevelKey; // x0 bool v4; // zf __int64 *v5; // x0 bool v6; // w20 unsigned int *v8; // x2 int v9; // w1 std::string v10; // [xsp+40h] [xbp+40h] BYREF m_completedLevels = a1->m_completedLevels; StarLevelKey = (char *)GameStatsManager::getStarLevelKey(a1, a2); sub_D153B8((int)&v10, StarLevelKey); v4 = cocos2d::CCDictionary::objectForKey(m_completedLevels, &v10) == 0; v5 = (__int64 *)((char *)v10.m_data.m_data - 24); v6 = !v4; if ( v5 != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)((char *)v10.m_data.m_data - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v10.m_data.m_data - 2); *((_DWORD *)v10.m_data.m_data - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v5); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source