// // cocos2d::CCKeypadDispatcher::removeDelegate from 0x1005f95b0 to 0x1005f965d (173 bytes) // // 2 xrefs: // > cocos2d::CCLayer::setKeypadEnabled @ 0x1004b0bf4 // > cocos2d::CCLayer::onExit @ 0x1004b1089 // // 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::removeDelegate( cocos2d::CCKeypadDispatcher *a1, cocos2d::CCKeypadDelegate *a2) { cocos2d::CCArray *m_pDelegates; // rax cocos2d::ccArray *data; // rax cocos2d::CCKeypadHandler **arr; // r12 unsigned __int64 v5; // r13 cocos2d::CCKeypadHandler *v6; // r15 if ( a2 ) { if ( a1->m_bLocked ) { sub_100668440(a1->m_pHandlersToRemove, a2); a1->m_bToRemove = 1; } else { m_pDelegates = a1->m_pDelegates; if ( m_pDelegates ) { data = m_pDelegates->data; if ( data->num ) { arr = (cocos2d::CCKeypadHandler **)data->arr; v5 = (unsigned __int64)&arr[data->num - 1]; do { v6 = *arr; if ( !*arr ) break; if ( cocos2d::CCKeypadHandler::getDelegate(*arr) == a2 ) { sub_100720220(a1->m_pDelegates, v6, 1); return; } ++arr; } while ( (unsigned __int64)arr <= v5 ); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source