// // cocos2d::CCLayer::registerWithTouchDispatcher from 0x5ced6c to 0x5cedb2 (70 bytes) // // 1 xrefs: // > LevelBrowserLayer::registerWithTouchDispatcher @ 0x3bdf00 // // 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::CCLayer::registerWithTouchDispatcher(cocos2d::CCLayer *a1) { cocos2d::CCDirector *v2; // r0 cocos2d::CCTouchDispatcher *v3; // r0 cocos2d::CCTouchScriptHandlerEntry *m_pScriptTouchHandlerEntry; // r3 cocos2d::CCTouchDelegate *v5; // r1 cocos2d::ccTouchesMode m_eTouchMode; // r2 int m_nPriority; // r2 char m_bSwallowsTouches; // r3 v2 = cocos2d::CCDirector::sharedDirector(); v3 = v2->getTouchDispatcher(v2); m_pScriptTouchHandlerEntry = a1->m_pScriptTouchHandlerEntry; v5 = &a1->cocos2d::CCTouchDelegate; if ( m_pScriptTouchHandlerEntry ) { if ( m_pScriptTouchHandlerEntry->m_bIsMultiTouches ) { m_eTouchMode = kCCTouchesAllAtOnce; LABEL_6: cocos2d::CCTouchDispatcher::addStandardDelegate(v3, v5, m_eTouchMode); return; } m_nPriority = m_pScriptTouchHandlerEntry->m_nPriority; m_bSwallowsTouches = m_pScriptTouchHandlerEntry->m_bSwallowsTouches; } else { m_eTouchMode = a1->m_eTouchMode; if ( m_eTouchMode == kCCTouchesAllAtOnce ) goto LABEL_6; m_nPriority = a1->m_nTouchPriority; m_bSwallowsTouches = 1; } cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, v5, m_nPriority, m_bSwallowsTouches); }
GD Web Decomp Icon

GD Web Decomp

Raw Source