// // cocos2d::CCLayer::setTouchMode from 0x180050f20 to 0x180050f65 (69 bytes) // // 9 xrefs: // > @ 0x1800ed280 // > @ 0x1800ed740 // > @ 0x1800edc78 // > @ 0x1800ee1e0 // > @ 0x1800ee7b8 // > @ 0x1800f7088 // > @ 0x1801438a8 // > @ 0x1801b2160 // > @ 0x1801b216c // // 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 // __int64 __fastcall cocos2d::CCLayer::setTouchMode(cocos2d::CCLayer *this, enum cocos2d::ccTouchesMode a2) { bool v3; // zf __int64 v4; // rdx __int64 result; // rax if ( this->m_eTouchMode != a2 ) { v3 = !this->m_bTouchEnabled; this->m_eTouchMode = a2; if ( !v3 ) { ((void (__fastcall *)(cocos2d::CCLayer *, _QWORD))this->setTouchEnabled)(this, 0); LOBYTE(v4) = 1; return ((__int64 (__fastcall *)(cocos2d::CCLayer *, __int64))this->setTouchEnabled)(this, v4); } } return result; }