// // cocos2d::extension::CCControlButton::ccTouchBegan from 0x100354ee0 to 0x100354f9b (187 bytes) // // 2 xrefs: // > @ 0x100915f88 // > @ 0x1009476d0 // // 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::extension::CCControlButton::ccTouchBegan( cocos2d::extension::CCControlButton *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCNode *m_pParent; // r14 if ( ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlButton *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->isTouchInside)( a1, a2, a3) && ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlButton *))a1->isEnabled)(a1) && ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlButton *))a1->isVisible)(a1) && cocos2d::extension::CCControl::hasVisibleParents(a1) ) { m_pParent = a1->m_pParent; if ( !m_pParent ) { LABEL_8: LOBYTE(a1[1].m_unknown5) = 1; ((void (__fastcall *)(cocos2d::extension::CCControlButton *, __int64))a1->setHighlighted)(a1, 1); ((void (__fastcall *)(cocos2d::extension::CCControlButton *, __int64))a1->sendActionsForControlEvents)(a1, 1); return 1; } while ( ((unsigned __int8 (__fastcall *)(cocos2d::CCNode *))m_pParent->isVisible)(m_pParent) ) { m_pParent = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_pParent->getParent)(m_pParent); if ( !m_pParent ) goto LABEL_8; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source