// // cocos2d::CCKeypadDispatcher::forceRemoveDelegate from 0x1001ad658 to 0x1001ad6ec (148 bytes) // // 2 xrefs: // > cocos2d::CCKeypadDispatcher::removeDelegate @ 0x1001ad654 // > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1001ad864 // // 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::CCKeypadDispatcher::forceRemoveDelegate( cocos2d::CCKeypadDispatcher *a1, cocos2d::CCKeypadDelegate *a2) { cocos2d::CCArray *m_pDelegates; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCKeypadHandler **arr; // x22 unsigned __int64 v8; // x23 cocos2d::CCKeypadHandler *v9; // x21 m_pDelegates = a1->m_pDelegates; if ( m_pDelegates ) { data = m_pDelegates->data; num = data->num; if ( (_DWORD)num ) { arr = (cocos2d::CCKeypadHandler **)data->arr; v8 = (unsigned __int64)&arr[num - 1]; do { v9 = *arr; if ( !*arr ) break; if ( cocos2d::CCKeypadHandler::getDelegate(*arr) == a2 ) { sub_10024A444(a1->m_pDelegates, v9, 1); return; } ++arr; } while ( (unsigned __int64)arr <= v8 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source