// // cocos2d::CCIMEDispatcher::removeDelegate from 0x1001d399c to 0x1001d39f4 (88 bytes) // // 1 xrefs: // > cocos2d::CCIMEDelegate::dCCIMEDelegate @ 0x1001d3984 // // 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::CCIMEDispatcher::removeDelegate(cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2) { cocos2d::CCIMEDispatcher::Impl *m_pImpl; // x8 cocos2d::CCIMEDelegate **v3; // x0 cocos2d::CCIMEDelegate *v4; // x9 cocos2d::CCIMEDelegate *v5; // x10 if ( a2 ) { m_pImpl = a1->m_pImpl; if ( a1->m_pImpl ) { v3 = (cocos2d::CCIMEDelegate **)a1->m_pImpl; while ( 1 ) { v3 = (cocos2d::CCIMEDelegate **)v3[1]; if ( v3 == (cocos2d::CCIMEDelegate **)m_pImpl ) break; if ( v3[2] == a2 ) { if ( *((cocos2d::CCIMEDelegate **)m_pImpl + 3) == a2 ) *((_QWORD *)m_pImpl + 3) = 0; v5 = *v3; v4 = v3[1]; v5[1].__vftable = (cocos2d::CCIMEDelegate_vtbl *)v4; v4->__vftable = (cocos2d::CCIMEDelegate_vtbl *)v5; --*((_QWORD *)m_pImpl + 2); operator delete(v3); return; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source