// // GJMapPack::completedMaps from 0x70e4bc to 0x70e574 (184 bytes) // // 6 xrefs: // > MapPackCell::loadFromMapPack @ 0x612dd4 // > MapPackCell::loadFromMapPack @ 0x612e34 // > MapPackCell::loadFromMapPack @ 0x6132b8 // > GJMapPack::hasCompletedMapPack @ 0x70e594 // > GauntletNode::generateNode @ 0x91a73c // > @ 0x99078 // // 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 // int GJMapPack::completedMaps(GJMapPack *a1) { cocos2d::CCArray *m_levels; // x0 unsigned int v3; // w19 int v4; // w21 GameStatsManager *v5; // x0 cocos2d::CCString *v6; // x0 GameStatsManager *v7; // x0 int v9; // [xsp+38h] [xbp+38h] m_levels = a1->m_levels; if ( !m_levels ) return 0; v3 = 0; v4 = 0; while ( v3 < (unsigned int)cocos2d::CCArray::count(m_levels) ) { v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a1->m_levels, v3); v9 = cocos2d::CCString::intValue(v6); if ( a1->m_isGauntlet ) { v5 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedGauntletLevel(v5, v9) ) ++v4; } else { v7 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedOnlineLevel(v7, v9) ) ++v4; } m_levels = a1->m_levels; ++v3; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source