// // LevelEditorLayer::toggleGroupPreview from 0x1000efe50 to 0x1000eff67 (279 bytes) // // 1 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x1000ef69f // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall LevelEditorLayer::toggleGroupPreview(LevelEditorLayer *a1, int a2, bool a3) { GJEffectManager *m_effectManager; // rdi cocos2d::CCArray *v6; // r12 cocos2d::ccArray *data; // rax GameObject **arr; // r12 unsigned __int64 v9; // r13 cocos2d::ccArray *v10; // rax GameObject **v11; // r12 unsigned __int64 v12; // r13 m_effectManager = a1->m_effectManager; if ( GJEffectManager::isGroupEnabled(m_effectManager, a2) != a3 ) { a1->m_toggledGroupStates.__begin_[a2] = 2; v6 = a1->m_triggerGroups.__begin_[a2]; if ( v6 ) { if ( a3 ) { LABEL_4: if ( v6 ) { data = v6->data; if ( data->num ) { arr = (GameObject **)data->arr; v9 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; GameObject::groupWasEnabled(*arr++); } while ( (unsigned __int64)arr <= v9 ); } } LABEL_17: GJEffectManager::toggleGroup(a1->m_effectManager, a2, a3); return; } } else { v6 = (cocos2d::CCArray *)sub_10071F9E0(m_effectManager, *(_QWORD *)&a2); a1->m_triggerGroups.__begin_[a2] = v6; cocos2d::CCDictionary::setObject(a1->m_triggerGroupsDict, v6, a2); if ( a3 ) goto LABEL_4; } if ( v6 ) { v10 = v6->data; if ( v10->num ) { v11 = (GameObject **)v10->arr; v12 = (unsigned __int64)&v11[v10->num - 1]; do { if ( !*v11 ) break; GameObject::groupWasDisabled(*v11++); } while ( (unsigned __int64)v11 <= v12 ); } } goto LABEL_17; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source