// // GJMapPack::completedMaps from 0x140170f90 to 0x1401710af (287 bytes) // // 8 xrefs: // > MapPackCell::loadFromMapPack @ 0x1400b1ff6 // > MapPackCell::loadFromMapPack @ 0x1400b226f // > MapPackCell::loadFromMapPack @ 0x1400b22f5 // > GauntletSelectLayer::onPlay @ 0x1401faccf // > GauntletNode::generateNode @ 0x1401fd20f // > GauntletNode::generateNode @ 0x1401fd3dd // > GJAccountManager::onSyncAccountCompleted @ 0x1402034ef // > @ 0x1406cae9c // // 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=2 int GJMapPack::completedMaps(GJMapPack *a1) { cocos2d::CCArray *m_levels; // rcx int v4; // ebx unsigned int v5; // edi int v6; // r14d cocos2d::CCString *v7; // rax int v8; // ebp GameStatsManager *v9; // rcx void *v10; // [rsp+40h] [rbp+8h] void *v11; // [rsp+48h] [rbp+10h] m_levels = a1->m_levels; if ( !m_levels ) return 0; v4 = 0; v5 = 0; if ( cocos2d::CCArray::count(m_levels) ) { do { v6 = v4; v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a1->m_levels, v5); v8 = cocos2d::CCString::intValue(v7); v9 = (GameStatsManager *)qword_1406C2EE8; if ( a1->m_isGauntlet ) { if ( !qword_1406C2EE8 ) { v10 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v9 = (GameStatsManager *)qword_1406C2EE8; } ++v4; if ( !GameStatsManager::hasCompletedGauntletLevel(v9, v8) ) v4 = v6; } else { if ( !qword_1406C2EE8 ) { v11 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v9 = (GameStatsManager *)qword_1406C2EE8; } if ( GameStatsManager::hasCompletedOnlineLevel(v9, v8) ) ++v4; } ++v5; } while ( v5 < cocos2d::CCArray::count(a1->m_levels) ); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source