// // LevelEditorLayer::updateToggledGroups from 0x367ec0 to 0x367fa2 (226 bytes) // // 1 xrefs: // > LevelEditorLayer::updateGameObjects @ 0x376006 // // 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 LevelEditorLayer::updateToggledGroups(LevelEditorLayer *a1) { std::vector *p_m_toggledGroupStates; // r9 int *p_m_toggledGroups; // r11 unsigned int i; // r4 cocos2d::CCArray *v5; // r7 _BOOL4 isGroupEnabled; // r0 int v7; // r10 cocos2d::ccArray *data; // r3 cocos2d::CCObject **arr; // r7 cocos2d::CCObject **v10; // r5 GameObject *v11; // r0 GameObject *v12; // t1 int v13; // [sp+0h] [bp-1Ch] int v14; // [sp+4h] [bp-18h] _DWORD v15[2]; // [sp+Ch] [bp-10h] BYREF p_m_toggledGroupStates = &a1->m_toggledGroupStates; p_m_toggledGroups = (int *)&a1->m_toggledGroups; for ( i = 0; i != 10000; ++i ) { if ( p_m_toggledGroupStates->m_start[i] ) { v5 = a1->m_groups.m_start[i]; if ( v5 ) { isGroupEnabled = GJEffectManager::isGroupEnabled(a1->m_effectManager, i); v13 = *p_m_toggledGroups; v14 = isGroupEnabled; sub_365110(v15, *p_m_toggledGroups, i); v7 = std::_Bit_reference::operator bool((int)v15); if ( v7 == v14 ) { sub_365110(v15, v13, i); std::_Bit_reference::operator=((int)v15, (unsigned __int8)v7 ^ 1); data = v5->data; if ( data->num ) { arr = data->arr; v10 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v10 ) { v12 = (GameObject *)*arr++; v11 = v12; if ( !v12 ) break; if ( !v11->m_isSpawnOrderTrigger ) { if ( v7 ) GameObject::groupWasEnabled(v11); else GameObject::groupWasDisabled(v11); } } } } } --p_m_toggledGroupStates->m_start[i]; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source