// // cocos2d::CCLayer::setTouchEnabled from 0x5cf2c4 to 0x5cf300 (60 bytes) // // 3 xrefs: // > CCScrollLayerExt::CCScrollLayerExt @ 0x2e8346 // > TableView::TableView @ 0x2e8ebe // > cocos2d::extension::CCScrollView::setTouchEnabled @ 0x5a9482 // // 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::setTouchEnabled(cocos2d::CCLayer *a1, bool a2) { _BOOL4 m_bRunning; // r3 cocos2d::CCDirector *v4; // r0 cocos2d::CCTouchDispatcher *v5; // r0 if ( a1->m_bTouchEnabled != a2 ) { m_bRunning = a1->m_bRunning; a1->m_bTouchEnabled = a2; if ( m_bRunning ) { if ( a2 ) { a1->registerWithTouchDispatcher(a1); } else { v4 = cocos2d::CCDirector::sharedDirector(); v5 = v4->getTouchDispatcher(v4); cocos2d::CCTouchDispatcher::removeDelegate(v5, &a1->cocos2d::CCTouchDelegate); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source