// // cocos2d::CCLayer::setTouchEnabled from 0x7d7454 to 0x7d7490 (60 bytes) // // 3 xrefs: // > CCScrollLayerExt::CCScrollLayerExt @ 0x3c8672 // > TableView::TableView @ 0x3c9346 // > cocos2d::extension::CCScrollView::setTouchEnabled @ 0x7af122 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:40 +0000 // unsigned __int8 *__fastcall cocos2d::CCLayer::setTouchEnabled(unsigned __int8 *this, int a2) { unsigned __int8 *v2; // r4 int v3; // r3 int v4; // r0 cocos2d::CCTouchDispatcher *v5; // r0 v2 = this; if ( *(this + 284) != a2 ) { v3 = *(this + 224); *(this + 284) = a2; if ( v3 ) { if ( a2 ) { return (unsigned __int8 *)(*(int (__fastcall **)(unsigned __int8 *))(*(_DWORD *)this + 484))(this); } else { v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4); return (unsigned __int8 *)cocos2d::CCTouchDispatcher::removeDelegate(v5, (cocos2d::CCTouchDelegate *)(v2 + 264)); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source