// // LevelEditorLayer::toggleGroupPreview from 0x660680 to 0x6607a0 (288 bytes) // // 2 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x66d768 // > @ 0xb2398 // // 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::toggleGroupPreview(LevelEditorLayer *a1, int a2, bool a3) { _BOOL4 v4; // w21 cocos2d::CCArray *TriggerGroup; // x0 cocos2d::ccArray *data; // x1 GameObject **arr; // x19 GameObject **v9; // x23 GameObject *v10; // x0 cocos2d::ccArray *v11; // x1 GameObject **v12; // x19 GameObject **v13; // x23 GameObject *v14; // x0 v4 = a3; if ( a3 != GJEffectManager::isGroupEnabled(a1->m_effectManager, a2) ) { a1->m_toggledGroupStates.m_start[a2] = 2; TriggerGroup = LevelEditorLayer::getTriggerGroup(a1, a2); if ( v4 ) { if ( TriggerGroup ) { data = TriggerGroup->data; if ( data->num ) { arr = (GameObject **)data->arr; v9 = &arr[data->num - 1]; while ( v9 >= arr ) { v10 = *arr; if ( !*arr ) break; ++arr; GameObject::groupWasEnabled(v10); } } } } else if ( TriggerGroup ) { v11 = TriggerGroup->data; if ( v11->num ) { v12 = (GameObject **)v11->arr; v13 = &v12[v11->num - 1]; while ( v13 >= v12 ) { v14 = *v12; if ( !*v12 ) break; ++v12; GameObject::groupWasDisabled(v14); } } } GJEffectManager::toggleGroup(a1->m_effectManager, a2, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source