// // cocos2d::CCLayer::setTouchEnabled from 0x180052cd0 to 0x180052d43 (115 bytes) // // 10 xrefs: // > @ 0x1800f33d8 // > @ 0x1800f38b8 // > @ 0x1800f3e10 // > @ 0x1800f4398 // > @ 0x1800f4990 // > @ 0x1800fd4c8 // > @ 0x180141244 // > @ 0x180141254 // > @ 0x18014cf68 // > @ 0x1801bc3dc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:21:46 +0000 // void __fastcall cocos2d::CCLayer::setTouchEnabled(cocos2d::CCLayer *this, char a2) { bool v3; // zf struct cocos2d::CCDirector *v4; // rax struct cocos2d::CCTouchDelegate *v5; // rbx cocos2d::CCTouchDispatcher *v6; // rax if ( *((_BYTE *)this + 360) != a2 ) { v3 = *((_BYTE *)this + 272) == 0; *((_BYTE *)this + 360) = a2; if ( !v3 ) { if ( a2 ) { (*(void (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)this + 888LL))(this); } else { v4 = cocos2d::CCDirector::sharedDirector(); v5 = (cocos2d::CCLayer *)((char *)this + 320); if ( !this ) v5 = nullptr; v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v4 + 144LL))(v4); cocos2d::CCTouchDispatcher::removeDelegate(v6, v5); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source