// // cocos2d::CCMenuItem::initWithTarget from 0x10004cb04 to 0x10004cb74 (112 bytes) // // 1 xrefs: // > CCMenuItemToggler::init @ 0x100190fac // // 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 // bool __fastcall cocos2d::CCMenuItem::initWithTarget( cocos2d::CCMenuItem *a1, cocos2d::CCObject *a2, cocos2d::SEL_MenuHandler a3) { __n128 v3; // q0 __n128 v4; // q1 size_t adj; // x19 void (__cdecl *ptr)(cocos2d::CCObject *); // x20 int v10; // [xsp+8h] [xbp-28h] BYREF adj = a3.adj; ptr = a3.ptr; v3.n128_u32[0] = 0.5; v4.n128_u32[0] = 0.5; sub_100022980(v3, v4, &v10); ((void (__fastcall *)(cocos2d::CCMenuItem *, int *))a1->setAnchorPoint)(a1, &v10); a1->m_pListener = a2; a1->m_pfnSelector.ptr = ptr; a1->m_pfnSelector.adj = adj; *(_WORD *)&a1->m_bSelected = 256; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source