// // LevelEditorLayer::removeAllObjects from 0x464424 to 0x4644ac (136 bytes) // // 1 xrefs: // > EditorUI::onDeleteAll @ 0x481d84 // // 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 // unsigned int __fastcall LevelEditorLayer::removeAllObjects(LevelEditorLayer *this) { EditorUI *v2; // r0 cocos2d::CCArray *v3; // r0 unsigned int v4; // r1 cocos2d::CCArray *v5; // r5 unsigned int result; // r0 _DWORD *v7; // r2 GameObject **v8; // r6 GameObject **v9; // r5 GameObject *v10; // r1 GameObject *v11; // t1 *((_BYTE *)this + 12208) = 1; v2 = *((EditorUI **)this + 2964); if ( v2 ) EditorUI::deselectAll(v2); v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 522)); v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v3, v4); cocos2d::CCArray::addObjectsFromArray(v5, *((cocos2d::CCArray **)this + 522)); if ( v5 ) { v7 = *((_DWORD **)v5 + 13); if ( *v7 ) { v8 = (GameObject **)v7[3]; v9 = &v8[*v7] + 0x3FFFFFFF; while ( v8 <= v9 ) { v11 = *v8++; v10 = v11; if ( !v11 ) break; LevelEditorLayer::removeObject((int)this, v10, 1); } } } cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 2966)); cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 2965)); result = LevelEditorLayer::setObjectCount(this, 0); *((_BYTE *)this + 12278) = 1; *((_BYTE *)this + 12208) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source