// // GJBaseGameLayer::toggleGroup from 0x1001f20a4 to 0x1001f2184 (224 bytes) // // 3 xrefs: // > GJBaseGameLayer::toggleGroupTriggered @ 0x1001f2050 // > sub_1001F2184 @ 0x1001f21b4 // > EffectGameObject::triggerObject @ 0x10038574c // // 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::toggleGroup(GJBaseGameLayer *a1, int a2, bool a3) { _BOOL4 v3; // w19 cocos2d::CCArray *Group; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 GameObject **arr; // x22 unsigned __int64 v10; // x23 cocos2d::ccArray *v11; // x9 __int64 v12; // x8 GameObject **v13; // x22 unsigned __int64 v14; // x23 v3 = a3; if ( GJEffectManager::isGroupEnabled(a1->m_effectManager, a2) != a3 ) { Group = GJBaseGameLayer::getGroup(a1, a2); if ( v3 ) { if ( Group ) { data = Group->data; num = data->num; if ( (_DWORD)num ) { arr = (GameObject **)data->arr; v10 = (unsigned __int64)&arr[num - 1]; do { if ( !*arr ) break; GameObject::groupWasEnabled(*arr++); } while ( (unsigned __int64)arr <= v10 ); } } } else if ( Group ) { v11 = Group->data; v12 = v11->num; if ( (_DWORD)v12 ) { v13 = (GameObject **)v11->arr; v14 = (unsigned __int64)&v13[v12 - 1]; do { if ( !*v13 ) break; GameObject::groupWasDisabled(*v13++); } while ( (unsigned __int64)v13 <= v14 ); } } GJEffectManager::toggleGroup(a1->m_effectManager, a2, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source