// // LevelEditorLayer::removeAllObjects from 0x36ac42 to 0x36acca (136 bytes) // // 1 xrefs: // > EditorUI::onDeleteAll @ 0x3a2d24 // // 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::removeAllObjects(LevelEditorLayer *a1) { EditorUI *m_editorUI; // r0 cocos2d::CCArray *v3; // r0 unsigned int v4; // r1 cocos2d::CCArray *v5; // r5 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r6 cocos2d::CCObject **v8; // r5 GameObject *v9; // r1 GameObject *v10; // t1 a1->m_removingAll = 1; m_editorUI = a1->m_editorUI; if ( m_editorUI ) EditorUI::deselectAll(m_editorUI); v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(a1->m_objects); v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v3, v4); cocos2d::CCArray::addObjectsFromArray(v5, a1->m_objects); if ( v5 ) { data = v5->data; if ( data->num ) { arr = data->arr; v8 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v8 ) { v10 = (GameObject *)*arr++; v9 = v10; if ( !v10 ) break; LevelEditorLayer::removeObject(a1, v9, 1); } } } cocos2d::CCArray::removeAllObjects(a1->m_redoObjects); cocos2d::CCArray::removeAllObjects(a1->m_undoObjects); LevelEditorLayer::setObjectCount(a1, 0); a1->m_unk3b22 = 1; a1->m_removingAll = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source