// // cocos2d::CCTouchDispatcher::removeDelegate from 0x1800b30f0 to 0x1800b31aa (186 bytes) // // 8 xrefs: // > cocos2d::CCLayer::onExit @ 0x18005072b // > cocos2d::CCLayer::setTouchEnabled @ 0x180050f10 // > @ 0x180140f0c // > @ 0x180140f1c // > @ 0x180140f38 // > @ 0x1801438a8 // > @ 0x1801b86a0 // > @ 0x1801b86ac // // 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::removeDelegate( cocos2d::CCTouchDispatcher *this, struct cocos2d::CCObject *a2) { cocos2d::CCArray *m_pHandlersToAdd; // rax cocos2d::ccArray *data; // rbx __int64 num; // rax cocos2d::CCNotificationObserver **arr; // rbx cocos2d::CCNotificationObserver **i; // r14 cocos2d::CCNotificationObserver *v9; // rdi if ( a2 ) { if ( this->m_bLocked ) { m_pHandlersToAdd = this->m_pHandlersToAdd; if ( m_pHandlersToAdd ) { data = m_pHandlersToAdd->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_pHandlersToAdd, v9); return; } } } } sub_18009E170((__int64)this->m_pHandlersToRemove, (__int64)a2); this->m_bToRemove = 1; } else { cocos2d::CCTouchDispatcher::forceRemoveDelegate(this, a2); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source