// // cocos2d::CCTouchDispatcher::forceRemoveDelegate from 0x1004cc040 to 0x1004cc129 (233 bytes) // // 2 xrefs: // > cocos2d::CCTouchDispatcher::removeDelegate @ 0x1004cc1c0 // > cocos2d::CCTouchDispatcher::touches @ 0x1004cc94b // // 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; // rax cocos2d::ccArray *data; // rax cocos2d::CCTouchHandler **arr; // r12 unsigned __int64 v5; // r13 cocos2d::CCTouchHandler *v6; // r15 cocos2d::CCArray *m_pTargetedHandlers; // rax cocos2d::ccArray *v8; // rax cocos2d::CCTouchHandler **v9; // r12 unsigned __int64 v10; // r13 cocos2d::CCTouchHandler *v11; // r15 m_pStandardHandlers = a1->m_pStandardHandlers; if ( m_pStandardHandlers ) { data = m_pStandardHandlers->data; if ( data->num ) { arr = (cocos2d::CCTouchHandler **)data->arr; v5 = (unsigned __int64)&arr[data->num - 1]; do { v6 = *arr; if ( !*arr ) break; if ( cocos2d::CCTouchHandler::getDelegate(*arr) == a2 ) { sub_100720220(a1->m_pStandardHandlers, v6, 1); m_pTargetedHandlers = a1->m_pTargetedHandlers; if ( m_pTargetedHandlers ) goto LABEL_8; return; } ++arr; } while ( (unsigned __int64)arr <= v5 ); } } m_pTargetedHandlers = a1->m_pTargetedHandlers; if ( m_pTargetedHandlers ) { LABEL_8: v8 = m_pTargetedHandlers->data; if ( v8->num ) { v9 = (cocos2d::CCTouchHandler **)v8->arr; v10 = (unsigned __int64)&v9[v8->num - 1]; do { v11 = *v9; if ( !*v9 ) break; if ( cocos2d::CCTouchHandler::getDelegate(*v9) == a2 ) { sub_100720220(a1->m_pTargetedHandlers, v11, 1); return; } ++v9; } while ( (unsigned __int64)v9 <= v10 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source