// // LevelEditorLayer::updateToggledGroups from 0x6601e4 to 0x660308 (292 bytes) // // 2 xrefs: // > LevelEditorLayer::updateGameObjects @ 0x67baec // > @ 0x69078 // // 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) { unsigned __int64 i; // x19 unsigned __int8 *v3; // x1 unsigned __int8 v4; // w0 cocos2d::CCArray *v5; // x24 _BOOL4 isGroupEnabled; // w25 std::uintptr_t *m_bitptr; // x2 __int64 v8; // x1 std::uintptr_t v9; // x0 cocos2d::ccArray *data; // x4 __int64 v11; // x5 __int64 v12; // x1 GameObject **arr; // x24 GameObject **j; // x26 for ( i = 0; i != 10000; ++i ) { v3 = &a1->m_toggledGroupStates.m_start[i]; v4 = *v3; if ( *v3 ) { v5 = a1->m_groups.m_start[i]; if ( v5 ) { isGroupEnabled = GJEffectManager::isGroupEnabled(a1->m_effectManager, i); m_bitptr = a1->m_toggledGroups.m_start.m_bitptr; v8 = 1LL << (i & 0x3F); v9 = m_bitptr[i >> 6]; if ( ((v9 & v8) != 0) == isGroupEnabled ) { data = v5->data; v11 = v9 | v8; v12 = v9 & ~v8; if ( !isGroupEnabled ) v12 = v11; m_bitptr[i >> 6] = v12; if ( data->num ) { arr = (GameObject **)data->arr; for ( j = &arr[data->num - 1]; j >= arr; ++arr ) { if ( !*arr ) break; if ( !(*arr)->m_isSpawnOrderTrigger ) { if ( isGroupEnabled ) GameObject::groupWasEnabled(*arr); else GameObject::groupWasDisabled(*arr); } } } } v3 = &a1->m_toggledGroupStates.m_start[i]; v4 = *v3; } *v3 = v4 - 1; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source