// // GJBaseGameLayer::toggleGroup from 0x85d490 to 0x85d5a4 (276 bytes) // // 3 xrefs: // > EffectGameObject::triggerObject @ 0x76faec // > GJBaseGameLayer::toggleGroupTriggered @ 0x85d5d0 // > @ 0x72060 // // 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::toggleGroup(GJBaseGameLayer *a1, int a2, bool a3) { _BOOL4 v4; // w21 cocos2d::CCArray *Group; // 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) ) { Group = GJBaseGameLayer::getGroup(a1, a2); if ( v4 ) { if ( Group ) { data = Group->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 ( Group ) { v11 = Group->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