// // cocos2d::CCTouchDispatcher::forceAddHandler from 0x807e80 to 0x807ee4 (100 bytes) // // 3 xrefs: // > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x807f04 // > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x807f9a // > cocos2d::CCTouchDispatcher::touches @ 0x808464 // // 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:01:26 +0000 // int __fastcall cocos2d::CCTouchDispatcher::forceAddHandler( cocos2d::CCTouchDispatcher *this, cocos2d::CCTouchHandler *a2, cocos2d::CCArray *a3) { unsigned int *v5; // r3 unsigned int v6; // r4 cocos2d::CCTouchHandler **v7; // r5 unsigned int v8; // r3 cocos2d::CCTouchHandler **v9; // r9 cocos2d::CCTouchHandler *v10; // r7 cocos2d::CCTouchHandler *v11; // t1 int result; // r0 int Priority; // r10 int Delegate; // r7 if ( a3 ) { v5 = *((unsigned int **)a3 + 13); v6 = *v5; if ( *v5 ) { v7 = (cocos2d::CCTouchHandler **)v5[3]; v8 = v6 + 0x3FFFFFFF; v6 = 0; v9 = &v7[v8]; while ( v7 <= v9 ) { v11 = *v7++; v10 = v11; if ( !v11 ) break; Priority = cocos2d::CCTouchHandler::getPriority(v10); if ( Priority < cocos2d::CCTouchHandler::getPriority(a2) ) ++v6; Delegate = cocos2d::CCTouchHandler::getDelegate(v10); result = cocos2d::CCTouchHandler::getDelegate(a2); if ( Delegate == result ) return result; } } } else { v6 = 0; } return cocos2d::CCArray::insertObject(a3, a2, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source