// // cocos2d::CCKeyboardDispatcher::forceRemoveDelegate from 0xb3fd98 to 0xb3fe40 (168 bytes) // // 3 xrefs: // > cocos2d::CCKeyboardDispatcher::removeDelegate @ 0xb3fe80 // > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0xb4001c // > @ 0x40638 // // 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 cocos2d::CCKeyboardDispatcher::forceRemoveDelegate( cocos2d::CCKeyboardDispatcher *a1, cocos2d::CCKeyboardDelegate *a2) { cocos2d::CCArray *m_pDelegates; // x2 cocos2d::ccArray *data; // x2 cocos2d::CCKeyboardHandler **arr; // x19 cocos2d::CCKeyboardHandler **v5; // x21 cocos2d::CCKeyboardHandler *v6; // x20 bool v9; // w3 m_pDelegates = a1->m_pDelegates; if ( m_pDelegates ) { data = m_pDelegates->data; if ( data->num ) { arr = (cocos2d::CCKeyboardHandler **)data->arr; v5 = &arr[data->num - 1]; if ( arr <= v5 ) { v6 = *arr; if ( *arr ) { while ( 1 ) { ++arr; if ( a2 == cocos2d::CCKeyboardHandler::getDelegate(v6) ) break; if ( v5 >= arr ) { v6 = *arr; if ( *arr ) continue; } return; } cocos2d::CCArray::removeObject( a1->m_pDelegates, (cocos2d::_ccArray *)v6, (cocos2d::CCObject *)((char *)&dword_0 + 1), v9); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source