// // EditorUI::onDeleteSelected from 0x6c0e04 to 0x6c0f50 (332 bytes) // // 5 xrefs: // > EditorUI::keyDown @ 0x6c5c08 // > @ 0x43de8 // > EditorUI::setupDeleteMenu @ 0x687ab4 // > EditorUI::init @ 0x6bc8d0 // > @ 0x122a270 // // 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 EditorUI::onDeleteSelected(EditorUI *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *v3; // x0 GameObject *m_selectedObject; // x1 unsigned int v5; // w20 cocos2d::CCArray *v6; // x21 bool v7; // cf unsigned int v8; // w1 GameObject *v9; // x22 unsigned int v10; // w20 int v11; // w22 GameObject *v12; // x1 unsigned int v13; // w1 UndoObject *v14; // x0 v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(a1->m_selectedObjects); if ( (_DWORD)v3 ) { v5 = 0; v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); while ( 1 ) { v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); v8 = v5++; if ( v7 ) break; while ( 1 ) { v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v8); if ( !EditorUI::shouldDeleteObject(a1, v9) ) break; cocos2d::CCArray::addObject(v6, v9); v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); v8 = v5++; if ( v7 ) goto LABEL_11; } } LABEL_11: v10 = 0; v11 = 0; while ( 1 ) { v7 = v10 >= (unsigned int)cocos2d::CCArray::count(v6); v13 = v10++; if ( v7 ) break; v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(v6, v13); if ( v12->m_objectID == 747 ) v11 = 1; EditorUI::deleteObject(a1, v12, 1); } v14 = UndoObject::createWithArray(v6, DeleteMulti); LevelEditorLayer::addToUndoList(a1->m_editorLayer, v14, 0); if ( v11 ) EditorUI::deselectTargetPortals(a1); } else { m_selectedObject = a1->m_selectedObject; if ( m_selectedObject && EditorUI::shouldDeleteObject(a1, m_selectedObject) ) EditorUI::deleteObject(a1, a1->m_selectedObject, 0); } EditorUI::updateSpecialUIElements(a1); EditorUI::updateButtons(a1); EditorUI::tryUpdateTimeMarkers(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source