// // cocos2d::CCMenu::giveMenuTouchPriority from 0xaf196c to 0xaf1a04 (152 bytes) // // 2 xrefs: // > ProfilePage::setupCommentsBrowser @ 0x8fdaf0 // > @ 0xbd4f8 // // 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 // void cocos2d::CCMenu::giveMenuTouchPriority(cocos2d::CCMenu *a1) { void (__fastcall *setTouchPriority)(cocos2d::CCLayer *__hidden, int); // x20 cocos2d::CCDirector *v3; // x0 __int64 v4; // x0 cocos2d::CCMenuItem *m_pSelectedItem; // x0 if ( a1->m_eState == kCCMenuStateTrackingTouch ) { m_pSelectedItem = a1->m_pSelectedItem; if ( m_pSelectedItem ) { m_pSelectedItem->unselected(m_pSelectedItem); a1->m_pSelectedItem = nullptr; } a1->m_eState = kCCMenuStateWaiting; } a1->setTouchEnabled(a1, 0); setTouchPriority = a1->setTouchPriority; v3 = cocos2d::CCDirector::sharedDirector(); v4 = (__int64)v3->getTouchDispatcher(v3); setTouchPriority(a1, *(_DWORD *)(v4 + 124) - 1); a1->setTouchEnabled(a1, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source