// // LevelEditorLayer::removeAllObjectsOfType from 0x4644ac to 0x4645a0 (244 bytes) // // 2 xrefs: // > EditorUI::onDeleteStartPos @ 0x481e20 // > EditorUI::onDeleteSelectedType @ 0x4864e4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:54 +0000 // cocos2d::CCArray *__fastcall LevelEditorLayer::removeAllObjectsOfType(cocos2d::CCArray *this, int a2) { int v2; // r6 _DWORD *v4; // r4 cocos2d::CCArray *v5; // r9 UndoObject *v6; // r0 unsigned int v7; // r4 unsigned int v8; // r7 _DWORD *v9; // r3 _DWORD *v10; // r0 int v11; // r2 int v12; // r5 int i; // r8 _DWORD *v14; // r12 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] _DWORD *v21; // [sp+Ch] [bp-8h] v2 = (int)this; if ( a2 != 749 ) { v4 = (_DWORD *)((char *)this + 11292); v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(this); if ( *(_DWORD *)(v2 + 11292) != *(_DWORD *)(v2 + 11296) ) { v8 = 0; v9 = (_DWORD *)(v2 + 11376); while ( v8 < (*(_DWORD *)(v2 + 11296) - *(_DWORD *)(v2 + 11292)) >> 2 ) { v10 = *(_DWORD **)(*v4 + 4 * v8); v11 = 4 * v8; if ( v10 ) v12 = (v10[1] - *v10) >> 2; else v12 = -1; for ( i = 0; i < v12; ++i ) { v14 = *(_DWORD **)(**(_DWORD **)(*v4 + v11) + 4 * i); if ( v14 ) { v15 = 0; v18 = *(_DWORD *)(**(_DWORD **)(*v9 + v11) + 4 * i); while ( v15 < v18 ) { v16 = *(cocos2d::CCObject **)(*v14 + 4 * v15); if ( *((_DWORD *)v16 + 223) == a2 ) { v21 = v9; v20 = v11; v19 = v14; cocos2d::CCArray::addObject(v5, v16); v9 = v21; v11 = v20; v14 = v19; } ++v15; } } } ++v8; } } v6 = UndoObject::createWithArray(v5, 4); v7 = 0; LevelEditorLayer::addToUndoList((cocos2d::CCArray **)v2, v6, 0); while ( 1 ) { this = (cocos2d::CCArray *)cocos2d::CCArray::count(v5); if ( v7 >= (unsigned int)this ) break; v17 = (GameObject *)cocos2d::CCArray::objectAtIndex(v5, v7++); LevelEditorLayer::removeObject(v2, v17, 1); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source