// // cocos2d::CCTouchDispatcher::forceRemoveDelegate from 0x10014efe8 to 0x10014f0d4 (236 bytes) // // 2 xrefs: // > cocos2d::CCTouchDispatcher::removeDelegate @ 0x10014f12c // > cocos2d::CCTouchDispatcher::touches @ 0x10014f59c // // 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::forceRemoveDelegate( cocos2d::CCTouchDispatcher *a1, cocos2d::CCTouchDelegate *a2) { cocos2d::CCArray *m_pStandardHandlers; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCTouchHandler **arr; // x22 unsigned __int64 v8; // x23 cocos2d::CCTouchHandler *v9; // x21 cocos2d::CCArray *m_pTargetedHandlers; // x8 cocos2d::ccArray *v11; // x9 __int64 v12; // x8 cocos2d::CCTouchHandler **v13; // x22 unsigned __int64 v14; // x23 cocos2d::CCTouchHandler *v15; // x21 m_pStandardHandlers = a1->m_pStandardHandlers; if ( m_pStandardHandlers ) { data = m_pStandardHandlers->data; num = data->num; if ( (_DWORD)num ) { arr = (cocos2d::CCTouchHandler **)data->arr; v8 = (unsigned __int64)&arr[num - 1]; do { v9 = *arr; if ( !*arr ) break; if ( cocos2d::CCTouchHandler::getDelegate(*arr) == a2 ) { sub_10024A444(a1->m_pStandardHandlers, v9, 1); break; } ++arr; } while ( (unsigned __int64)arr <= v8 ); } } m_pTargetedHandlers = a1->m_pTargetedHandlers; if ( m_pTargetedHandlers ) { v11 = m_pTargetedHandlers->data; v12 = v11->num; if ( (_DWORD)v12 ) { v13 = (cocos2d::CCTouchHandler **)v11->arr; v14 = (unsigned __int64)&v13[v12 - 1]; do { v15 = *v13; if ( !*v13 ) break; if ( cocos2d::CCTouchHandler::getDelegate(*v13) == a2 ) { sub_10024A444(a1->m_pTargetedHandlers, v15, 1); return; } ++v13; } while ( (unsigned __int64)v13 <= v14 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source