// // GJMapPack::completedMaps from 0x10058c960 to 0x10058ca0b (171 bytes) // // 5 xrefs: // > MapPackCell::loadFromMapPack @ 0x10022a945 // > MapPackCell::loadFromMapPack @ 0x10022abc7 // > MapPackCell::loadFromMapPack @ 0x10022ac35 // > GJMapPack::hasCompletedMapPack @ 0x10058ca37 // > GauntletNode::generateNode @ 0x1005a2341 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:32:25 +0000 // __int64 __fastcall GJMapPack::completedMaps(__int64 a1) { __int64 v2; // rdi unsigned int v3; // r14d unsigned int v4; // r15d bool hasCompletedGauntletLevel; // al __int64 v6; // rax unsigned int v7; // r12d char v8; // r13 __int64 v9; // rdi v2 = *(_QWORD *)(a1 + 320); v3 = 0; if ( v2 && (unsigned int)sub_1007FEF90(v2) ) { v4 = 0; v3 = 0; do { v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 320), v4); v7 = cocos2d::CCString::intValue(v6); v8 = *(_BYTE *)(a1 + 404); v9 = GameStatsManager::sharedState(); if ( v8 == 1 ) hasCompletedGauntletLevel = GameStatsManager::hasCompletedGauntletLevel(v9, v7); else hasCompletedGauntletLevel = GameStatsManager::hasCompletedOnlineLevel(v9, v7); v3 += hasCompletedGauntletLevel; ++v4; } while ( v4 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 320)) ); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source