// // LevelEditorLayer::removeAllObjectsOfType from 0x10035ba68 to 0x10035bbcc (356 bytes) // // 2 xrefs: // > EditorUI::onDeleteStartPos @ 0x1003e916c // > EditorUI::onDeleteSelectedType @ 0x1003e9198 // // 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 __fastcall LevelEditorLayer::removeAllObjectsOfType(LevelEditorLayer *a1, int a2) { cocos2d::CCArray *v4; // x20 std::__vector_base *, std::allocator *>> *, std::allocator *, std::allocator *>> *>>::pointer begin; // x9 std::__vector_base *, std::allocator *>> *, std::allocator *, std::allocator *>> *>>::pointer end; // x8 unsigned __int64 v7; // x22 std::vector *, std::allocator *>> *v8; // x10 unsigned __int64 v9; // x10 __int64 v10; // x23 __int64 v11; // x24 std::vector *v12; // x25 __int64 v13; // x8 unsigned __int64 v14; // x26 __int64 v15; // x27 UndoObject *v16; // x0 unsigned int v17; // w21 GameObject *v18; // x0 if ( a2 != 749 ) { v4 = (cocos2d::CCArray *)sub_10024A15C(); begin = a1->m_sections.__begin_; end = a1->m_sections.__end_; if ( begin != end ) { v7 = 0; do { v8 = begin[v7]; if ( v8 ) { v9 = (char *)v8->__end_ - (char *)v8->__begin_; if ( (int)(v9 >> 3) >= 1 ) { v10 = 0; v11 = (v9 >> 3) & 0x7FFFFFFF; do { v12 = a1->m_sections.__begin_[v7]->__begin_[v10]; if ( v12 ) { v13 = (unsigned int)a1->m_sectionSizes.__begin_[v7]->__begin_[v10]; if ( (int)v13 >= 1 ) { v14 = 0; v15 = 8 * v13; do { if ( v12->__begin_[v14 / 8]->m_objectID == a2 ) sub_10024A2D0((__int64)v4); v14 += 8LL; } while ( v15 != v14 ); } } ++v10; } while ( v10 != v11 ); end = a1->m_sections.__end_; begin = a1->m_sections.__begin_; } } ++v7; } while ( v7 < end - begin ); } v16 = UndoObject::createWithArray(v4, DeleteMulti); LevelEditorLayer::addToUndoList(a1, v16, 0); if ( (unsigned int)sub_10024A36C((__int64)v4) ) { v17 = 0; do { v18 = (GameObject *)sub_10024A388((__int64)v4, v17); LevelEditorLayer::removeObject(a1, v18, 1); ++v17; } while ( v17 < (unsigned int)sub_10024A36C((__int64)v4) ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source