// // LevelEditorLayer::resetToggledGroupsAndObjects from 0x1000f0560 to 0x1000f0617 (183 bytes) // // 1 xrefs: // > SetGroupIDLayer::onClose @ 0x100314881 // // 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 LevelEditorLayer::resetToggledGroupsAndObjects(LevelEditorLayer *a1) { cocos2d::CCArray *m_objects; // rax cocos2d::ccArray *data; // rax GameObject **arr; // r14 unsigned __int64 v4; // r15 unsigned __int64 i; // rax unsigned __int64 v6; // rsi m_objects = a1->m_objects; if ( m_objects ) { data = m_objects->data; if ( data->num ) { arr = (GameObject **)data->arr; v4 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; GameObject::resetGroupDisabled(*arr++); } while ( (unsigned __int64)arr <= v4 ); } } for ( i = 0; i != 10000; i += 2LL ) { a1->m_toggledGroupStates.__begin_[i] = 0; v6 = i >> 6; *(_QWORD *)&a1->m_toggledGroups.__begin_[8 * v6] &= __ROL8__(-2, i & 0x3E); a1->m_toggledGroupStates.__begin_[i + 1] = 0; *(_QWORD *)&a1->m_toggledGroups.__begin_[8 * v6] &= __ROL8__(-2, (unsigned __int8)i + 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source