// // LevelEditorLayer::removeAllObjectsOfType from 0x36acca to 0x36adba (240 bytes) // // 2 xrefs: // > EditorUI::onDeleteSelectedType @ 0x3a2dbc // > EditorUI::onDeleteStartPos @ 0x3a2de4 // // 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::removeAllObjectsOfType(LevelEditorLayer *a1, int a2) { cocos2d::CCArray *v4; // r9 UndoObject *v5; // r0 unsigned int v6; // r5 unsigned int v7; // r6 std::vector *, std::allocator *>> *, std::allocator *, std::allocator *>> *>> *p_m_sections; // r7 std::vector *, std::allocator *>> *v9; // r1 int v10; // r3 int v11; // r5 std::vector *, std::allocator *>> *p_m_sectionSizes; // r12 int i; // r8 _DWORD *v14; // r2 int v15; // r10 cocos2d::CCObject *v16; // r1 GameObject *v17; // r0 int v18; // [sp+0h] [bp-14h] _DWORD *v19; // [sp+4h] [bp-10h] int v20; // [sp+8h] [bp-Ch] std::vector *, std::allocator *>> *v21; // [sp+Ch] [bp-8h] if ( a2 != 749 ) { v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); if ( a1->m_sections.m_start != a1->m_sections.m_finish ) { v7 = 0; p_m_sections = &a1->m_sections; while ( v7 < a1->m_sections.m_finish - a1->m_sections.m_start ) { v9 = p_m_sections->m_start[v7]; v10 = 4 * v7; if ( v9 ) v11 = v9->m_finish - v9->m_start; else v11 = -1; p_m_sectionSizes = &a1->m_sectionSizes; for ( i = 0; i < v11; ++i ) { v14 = *(_DWORD **)(**(_DWORD **)((char *)p_m_sections->m_start + v10) + 4 * i); if ( v14 ) { v15 = 0; v18 = *(_DWORD *)(**(_DWORD **)((char *)p_m_sectionSizes->m_start + v10) + 4 * i); while ( v15 < v18 ) { v16 = *(cocos2d::CCObject **)(*v14 + 4 * v15); if ( v16[17].__vftable == (cocos2d::CCObject_vtbl *)a2 ) { v21 = p_m_sectionSizes; v20 = v10; v19 = v14; cocos2d::CCArray::addObject(v4, v16); v14 = v19; v10 = v20; p_m_sectionSizes = v21; } ++v15; } } } ++v7; } } v5 = UndoObject::createWithArray(v4, DeleteMulti); v6 = 0; LevelEditorLayer::addToUndoList(a1, v5, 0); while ( v6 < cocos2d::CCArray::count(v4) ) { v17 = (GameObject *)cocos2d::CCArray::objectAtIndex(v4, v6++); LevelEditorLayer::removeObject(a1, v17, 1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source