// // LevelEditorLayer::removeAllObjectsOfType from 0x665a10 to 0x665b9c (396 bytes) // // 3 xrefs: // > EditorUI::onDeleteSelectedType @ 0x6be43c // > EditorUI::onDeleteStartPos @ 0x6be488 // > @ 0x79338 // // 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; // x23 std::vector *, std::allocator *>> **m_start; // x2 std::vector *, std::allocator *>> **m_finish; // x3 unsigned __int64 v7; // x24 std::vector *, std::allocator *>> *v8; // x1 __int64 v9; // x0 unsigned __int64 v10; // x27 __int64 v11; // x21 std::vector *v12; // x25 int v13; // w20 unsigned __int64 v14; // x19 __int64 v15; // x20 GameObject *v16; // x1 unsigned int v17; // w19 UndoObject *v18; // x0 GameObject *v19; // x0 bool v20; // cf unsigned int v21; // w1 if ( a2 != 749 ) { v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); m_start = a1->m_sections.m_start; m_finish = a1->m_sections.m_finish; if ( m_start != m_finish && m_finish - m_start ) { v7 = 0; do { v8 = m_start[v7]; if ( v8 ) { v9 = v8->m_finish - v8->m_start; if ( (int)v9 > 0 ) { v10 = 0; v11 = 4 * ((unsigned int)(v9 - 1) + 1LL); do { v12 = m_start[v7]->m_start[v10 / 4]; if ( v12 ) { v13 = a1->m_sectionSizes.m_start[v7]->m_start[v10 / 4]; if ( v13 > 0 ) { v14 = 0; v15 = 8 * ((unsigned int)(v13 - 1) + 1LL); do { while ( 1 ) { v16 = v12->m_start[v14 / 8]; v14 += 8LL; if ( a2 == v16->m_objectID ) break; if ( v14 == v15 ) goto LABEL_14; } cocos2d::CCArray::addObject(v4, v16); } while ( v14 != v15 ); LABEL_14: m_start = a1->m_sections.m_start; } } v10 += 4LL; } while ( v10 != v11 ); m_finish = a1->m_sections.m_finish; } } ++v7; } while ( v7 < m_finish - m_start ); } v17 = 0; v18 = UndoObject::createWithArray(v4, DeleteMulti); LevelEditorLayer::addToUndoList(a1, v18, 0); while ( 1 ) { v20 = v17 >= (unsigned int)cocos2d::CCArray::count(v4); v21 = v17++; if ( v20 ) break; v19 = (GameObject *)cocos2d::CCArray::objectAtIndex(v4, v21); LevelEditorLayer::removeObject(a1, v19, 1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source