// // CreateMenuItem::create from 0x1401294b0 to 0x140129585 (213 bytes) // // 7 xrefs: // > EditorUI::createCustomItems @ 0x1400e49d5 // > EditorUI::createCustomItems @ 0x1400e4a87 // > EditorUI::createCustomItems @ 0x1400e4b38 // > EditorUI::createCustomItems @ 0x1400e4bea // > EditorUI::menuItemFromObjectString @ 0x14010e90e // > EditorUI::getCreateBtn @ 0x14010ed6a // > @ 0x1406c9a20 // // 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 // // Hidden C++ exception states: #wind=1 CreateMenuItem *CreateMenuItem::create( cocos2d::CCNode *a1, cocos2d::CCNode *a2, cocos2d::CCObject *a3, cocos2d::SEL_MenuHandler *a4) { char *v7; // r14 v7 = (char *)operator new(0x238u); CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((CCMenuItemSpriteExtra *)v7); *(_QWORD *)v7 = &CreateMenuItem::`vftable'; *((_QWORD *)v7 + 40) = &CreateMenuItem::`vftable'; *(_OWORD *)(v7 + 520) = 0; *((_QWORD *)v7 + 67) = 0; *((_QWORD *)v7 + 68) = 15; v7[520] = 0; *(_QWORD *)(v7 + 556) = 0; if ( CCMenuItemSpriteExtra::init((CCMenuItemSpriteExtra *)v7, a1, nullptr, a3, a4) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7); return (CreateMenuItem *)v7; } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1); return nullptr; } }