// // LevelEditorLayer::removeAllObjects from 0x10035b968 to 0x10035ba68 (256 bytes) // // 1 xrefs: // > EditorUI::FLAlert_Clicked @ 0x1003e9e78 // // 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::removeAllObjects(LevelEditorLayer *a1) { int *p_m_activeGradients; // x21 EditorUI *m_editorUI; // x0 __int64 v4; // x0 cocos2d::CCObject *v5; // x20 cocos2d::CCObject_vtbl *v6; // x9 __int64 copyWithZone_low; // x8 GameObject **v8; // x22 unsigned __int64 v9; // x23 GameObject *v10; // x20 float v11; // s0 p_m_activeGradients = &a1->m_activeGradients; a1->m_removingAll = 1; m_editorUI = a1->m_editorUI; if ( m_editorUI ) EditorUI::deselectAll(m_editorUI); v4 = sub_10024A36C((__int64)a1->m_objects); v5 = sub_10024A300(v4); sub_10024A360((__int64)v5, (__int64)a1->m_objects); if ( v5 ) { v6 = v5[1].__vftable; copyWithZone_low = LODWORD(v6->copyWithZone); if ( (_DWORD)copyWithZone_low ) { v8 = (GameObject **)v6->~CCObject_0; v9 = (unsigned __int64)&v8[copyWithZone_low - 1]; do { v10 = *v8; if ( !*v8 ) break; ((void (__fastcall *)(GameObject *, __int64))v10->deactivateObject)(*v8, 1); GJBaseGameLayer::removeObjectFromSection(a1, v10); LevelEditorLayer::removeSpecial(a1, v10); *((_BYTE *)p_m_activeGradients + 2266) = 1; ++v8; } while ( (unsigned __int64)v8 <= v9 ); } } sub_10024A45C((__int64)a1->m_redoObjects); sub_10024A45C((__int64)a1->m_undoObjects); a1->m_objectCount.value = 0; v11 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; a1->m_objectCount.seed = (int)v11; a1->m_objectCount.random = (int)v11; *((_BYTE *)p_m_activeGradients + 2266) = 1; *((_BYTE *)p_m_activeGradients + 2136) = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source