// // GJBaseGameLayer::resetSpawnChannelIndex from 0x140350130 to 0x1403501de (174 bytes) // // 6 xrefs: // > GJBaseGameLayer::resetLevelVariables @ 0x1403458d1 // > LevelEditorLayer::updateGameObjects @ 0x1403fb174 // > LevelEditorLayer::onPlaytest @ 0x1403fed84 // > @ 0x1408b881c // > @ 0x1408b882c // > @ 0x140920228 // // 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 11:30:46 +0000 // unsigned int __fastcall GJBaseGameLayer::resetSpawnChannelIndex(__int64 a1) { cocos2d::CCArray *v2; // rsi unsigned int v3; // edi unsigned int result; // eax _BYTE v5[16]; // [rsp+20h] [rbp-38h] BYREF _BYTE v6[40]; // [rsp+30h] [rbp-28h] BYREF int v7; // [rsp+60h] [rbp+8h] BYREF *(_DWORD *)(a1 + 828) = 0; v2 = cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(a1 + 3568)); v3 = 0; result = cocos2d::CCArray::count(v2); if ( result ) { do { v7 = *((_DWORD *)cocos2d::CCArray::objectAtIndex(v2, v3) + 14); *(_DWORD *)(*(_QWORD *)sub_140067F60((_QWORD *)(a1 + 840), (__int64)v5, (unsigned __int8 *)&v7) + 20LL) = 0; ++v3; *(_BYTE *)(*(_QWORD *)sub_140358A00(a1 + 904, v6) + 20LL) = 0; result = cocos2d::CCArray::count(v2); } while ( v3 < result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source