// // cocos2d::CCMouseDispatcher::forceRemoveDelegate from 0x180044fe0 to 0x18004506e (142 bytes) // // 7 xrefs: // > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x180044f3d // > cocos2d::CCMouseDispatcher::removeDelegate @ 0x180045a48 // > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1800b450d // > @ 0x180137290 // > @ 0x1801372c4 // > @ 0x1801438a8 // > @ 0x1801b16c8 // // 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 // // Alternative name is '?forceRemoveDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z' // Alternative name is '?forceRemoveDelegate@CCKeypadDispatcher@cocos2d@@QEAAXPEAVCCKeypadDelegate@2@@Z' void __fastcall cocos2d::CCMouseDispatcher::forceRemoveDelegate( cocos2d::CCMouseDispatcher *this, struct cocos2d::CCObject *a2) { cocos2d::CCArray *m_pMouseHandlers; // rbx cocos2d::ccArray *data; // rbx __int64 num; // rax cocos2d::CCNotificationObserver **arr; // rbx cocos2d::CCNotificationObserver **i; // rsi cocos2d::CCNotificationObserver *v9; // rdi m_pMouseHandlers = this->m_pMouseHandlers; if ( m_pMouseHandlers ) { data = m_pMouseHandlers->data; num = data->num; if ( (_DWORD)num ) { arr = (cocos2d::CCNotificationObserver **)data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v9 = *arr; if ( !*arr ) break; if ( cocos2d::CCNotificationObserver::getTarget(*arr) == a2 ) { cocos2d::CCArray::removeObject(this->m_pMouseHandlers, v9); return; } } } } }