// // GJBaseGameLayer::resetSpawnChannelIndex from 0x140245e20 to 0x140245ece (174 bytes) // // 6 xrefs: // > GJBaseGameLayer::resetLevelVariables @ 0x14023b93b // > LevelEditorLayer::updateGameObjects @ 0x1402dc8cd // > LevelEditorLayer::onPlaytest @ 0x1402e01c6 // > @ 0x14068246c // > @ 0x14068247c // > @ 0x1406ce610 // // 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 // void GJBaseGameLayer::resetSpawnChannelIndex(GJBaseGameLayer *a1) { cocos2d::CCArray *v2; // rsi unsigned int i; // edi _BYTE v4[16]; // [rsp+20h] [rbp-38h] BYREF _BYTE v5[40]; // [rsp+30h] [rbp-28h] BYREF int v6; // [rsp+60h] [rbp+8h] BYREF a1->m_gameState.m_currentChannel = 0; v2 = cocos2d::CCDictionary::allKeys(a1->m_spawnObjects); for ( i = 0; i < cocos2d::CCArray::count(v2); *(_BYTE *)(*(_QWORD *)sub_140250920(&a1->m_gameState.m_spawnChannelRelated1, v5) + 20LL) = 0 ) { v6 = (int)cocos2d::CCArray::objectAtIndex(v2, i)[1].__vftable; *(_DWORD *)(*(_QWORD *)sub_140060B20( &a1->m_gameState.m_spawnChannelRelated0._Traitsobj._Mypair._Myval2._Myval2, (__int64)v4, (unsigned __int8 *)&v6) + 20LL) = 0; ++i; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source