// // EditorUI::createUndoSelectObject from 0x1401b3a50 to 0x1401b3b5c (268 bytes) // // 9 xrefs: // > EditorUI::clickOnPosition @ 0x1401adb43 // > EditorUI::onCreate @ 0x1401b2689 // > EditorUI::ccTouchEnded @ 0x1401c1588 // > EditorUI::ccTouchEnded @ 0x1401c17a8 // > EditorUI::handleEditorAction @ 0x1401c2432 // > EditorUI::findObject @ 0x1401c9498 // > EditorUI::processSelectObjects @ 0x1401c95f4 // > EditorUI::onDeselectAll @ 0x1401c990b // > @ 0x14091a060 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:27:56 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall EditorUI::createUndoSelectObject(__int64 a1, __int64 a2) { char v2; // bp struct cocos2d::CCArray *SelectedObjects; // rbx cocos2d::CCObject **v5; // rdi __int64 v6; // rcx cocos2d::CCArray *v7; // rax __int64 v8; // rsi unsigned int v9; // ebx v2 = a2; SelectedObjects = (struct cocos2d::CCArray *)EditorUI::getSelectedObjects(a1, a2); v5 = (cocos2d::CCObject **)operator new(0xA0u); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v5); *v5 = (cocos2d::CCObject *)&UndoObject::`vftable'; v5[7] = nullptr; *((_DWORD *)v5 + 16) = 0; v5[9] = nullptr; *((_WORD *)v5 + 40) = 0; GJTransformState::GJTransformState((__int64)v5 + 84); if ( SelectedObjects ) { v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); v5[9] = v7; cocos2d::CCArray::addObjectsFromArray(v7, SelectedObjects); cocos2d::CCObject::retain(v5[9]); } *((_DWORD *)v5 + 16) = 6; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5); *((_BYTE *)v5 + 80) = v2; v8 = *(_QWORD *)(a1 + 1512); cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v8 + 14920)); v9 = 1000; if ( !*(_BYTE *)(v8 + 14663) ) v9 = 200; if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(v8 + 14912)) >= v9 ) cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v8 + 14912), 0, 1); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v8 + 14912), (struct cocos2d::CCObject *)v5); }