// // cocos2d::CCTouchDispatcher::forceAddHandler from 0x1004cbe50 to 0x1004cbf20 (208 bytes) // // 0 xrefs: // // 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 __fastcall cocos2d::CCTouchDispatcher::forceAddHandler( cocos2d::CCTouchDispatcher *a1, cocos2d::CCTouchHandler *a2, cocos2d::CCArray *a3) { unsigned int v3; // r8d cocos2d::ccArray *data; // rax cocos2d::CCTouchHandler **arr; // rbx cocos2d::CCTouchHandler *v6; // r14 int Priority; // r12d int v8; // r13d cocos2d::CCTouchDelegate *Delegate; // r14 unsigned __int64 v10; // [rsp+8h] [rbp-48h] unsigned int v12; // [rsp+24h] [rbp-2Ch] v3 = 0; if ( a3 ) { data = a3->data; if ( data->num ) { arr = (cocos2d::CCTouchHandler **)data->arr; v10 = (unsigned __int64)&arr[data->num - 1]; v3 = 0; do { v6 = *arr; if ( !*arr ) break; v12 = v3; Priority = cocos2d::CCTouchHandler::getPriority(v6); v8 = cocos2d::CCTouchHandler::getPriority(a2); Delegate = cocos2d::CCTouchHandler::getDelegate(v6); if ( Delegate == cocos2d::CCTouchHandler::getDelegate(a2) ) return; v3 = (Priority < v8) + v12; ++arr; } while ( (unsigned __int64)arr <= v10 ); } } sub_1007201F0(a3, a2, v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source