// // GJBaseGameLayer::resetSpawnChannelIndex from 0x10015a170 to 0x10015a254 (228 bytes) // // 3 xrefs: // > LevelEditorLayer::updateGameObjects @ 0x1000de076 // > LevelEditorLayer::onPlaytest @ 0x1000f2681 // > GJBaseGameLayer::resetLevelVariables @ 0x1001599a3 // // 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 __fastcall GJBaseGameLayer::resetSpawnChannelIndex(GJBaseGameLayer *a1) { __m128 v1; // xmm0 cocos2d::CCArray *v2; // r14 unsigned int v3; // r12d int v4; // [rsp+14h] [rbp-3Ch] BYREF int *v5; // [rsp+18h] [rbp-38h] BYREF _BYTE v6[41]; // [rsp+27h] [rbp-29h] BYREF a1->m_gameState.m_currentChannel = 0; v2 = cocos2d::CCDictionary::allKeys(a1->m_spawnObjects); if ( (unsigned int)sub_100720070(v2) ) { v3 = 0; do { v4 = *(_DWORD *)(sub_1007200C0(v2, v3) + 56); v5 = &v4; *((_DWORD *)sub_100055BA0((float *)&a1->m_gameState.m_spawnChannelRelated0, &v4, v1, (__int64)&unk_100816AE0, &v5) + 5) = 0; v5 = &v4; *(_BYTE *)(sub_100167FF0(&a1->m_gameState.m_spawnChannelRelated1, &v4, &unk_100816AE0, &v5, v6) + 20) = 0; ++v3; } while ( v3 < (unsigned int)sub_100720070(v2) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source