// // LevelEditorLayer::forceShowSelectedObjects from 0x65f6a8 to 0x65f750 (168 bytes) // // 3 xrefs: // > LevelEditorLayer::updateVisibility @ 0x662c80 // > LevelEditorLayer::updateVisibility @ 0x662c98 // > @ 0x59040 // // 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::forceShowSelectedObjects(LevelEditorLayer *a1, bool a2) { _BOOL4 v2; // w19 EditorUI *m_editorUI; // x1 cocos2d::CCObject *v5; // x1 GameObject *m_selectedObject; // x0 cocos2d::CCArray *m_selectedObjects; // x0 cocos2d::ccArray *data; // x0 unsigned int num; // w2 cocos2d::CCObject **arr; // x0 cocos2d::CCObject **i; // x4 char m_uIndexInArray_high; // w3 cocos2d::CCObject *v13; // x2 v2 = a2; m_editorUI = a1->m_editorUI; if ( m_editorUI ) { if ( (unsigned int)cocos2d::CCArray::count(m_editorUI->m_selectedObjects) ) { m_selectedObjects = a1->m_editorUI->m_selectedObjects; } else { m_selectedObject = a1->m_editorUI->m_selectedObject; if ( !m_selectedObject ) return; m_selectedObjects = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject( (cocos2d::CCArray *)m_selectedObject, v5); } if ( m_selectedObjects ) { data = m_selectedObjects->data; num = data->num; if ( data->num ) { arr = data->arr; for ( i = &arr[num - 1]; i >= arr; BYTE2(v13[11].m_uIndexInArray) = m_uIndexInArray_high ) { v13 = *arr; if ( !*arr ) break; if ( v2 ) { m_uIndexInArray_high = 0; HIBYTE(v13[11].m_uIndexInArray) = BYTE2(v13[11].m_uIndexInArray); } else { m_uIndexInArray_high = HIBYTE(v13[11].m_uIndexInArray); } ++arr; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source