// // cocos2d::CCMenuItem::initWithTarget from 0xaf54c0 to 0xaf5568 (168 bytes) // // 8 xrefs: // > CCMenuItemToggler::init @ 0x57685c // > cocos2d::CCMenuItem::create @ 0xaf55d8 // > cocos2d::CCMenuItemLabel::initWithLabel @ 0xaf56a0 // > cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0xaf5ea8 // > cocos2d::CCMenuItemToggle::createWithTarget @ 0xaf6518 // > cocos2d::CCMenuItemToggle::initWithTarget @ 0xaf65b0 // > cocos2d::CCMenuItemToggle::initWithItem @ 0xaf67b8 // > @ 0x5fbf8 // // 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 cocos2d::CCMenuItem::initWithTarget(cocos2d::CCMenuItem *a1, cocos2d::CCObject *a2, cocos2d::SEL_MenuHandler a3) { void (__cdecl *ptr)(cocos2d::CCObject *); // x22 size_t adj; // x23 void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCPoint v9; // [xsp+50h] [xbp+50h] BYREF ptr = a3.ptr; adj = a3.adj; setAnchorPoint = a1->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v9, 0.5, 0.5); setAnchorPoint(a1, &v9); a1->m_pListener = a2; a1->m_pfnSelector.ptr = ptr; a1->m_pfnSelector.adj = adj; a1->m_bEnabled = 1; a1->m_bSelected = 0; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source