// // cocos2d::CCIMEDispatcher::addDelegate from 0x1001d38f0 to 0x1001d3958 (104 bytes) // // 1 xrefs: // > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1001d3844 // // 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::addDelegate(cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2) { cocos2d::CCIMEDispatcher::Impl *m_pImpl; // x20 cocos2d::CCIMEDispatcher::Impl *v4; // x8 _QWORD *v5; // x0 _QWORD *v6; // x8 __int64 v7; // x9 if ( a2 ) { m_pImpl = a1->m_pImpl; if ( a1->m_pImpl ) { v4 = a1->m_pImpl; while ( 1 ) { v4 = *((cocos2d::CCIMEDispatcher::Impl **)v4 + 1); if ( v4 == m_pImpl ) break; if ( *((cocos2d::CCIMEDelegate **)v4 + 2) == a2 ) return; } v5 = operator new(0x18u); v5[2] = a2; v6 = *((_QWORD **)m_pImpl + 1); v7 = *((_QWORD *)m_pImpl + 2); *v5 = m_pImpl; v5[1] = v6; *v6 = v5; *((_QWORD *)m_pImpl + 1) = v5; *((_QWORD *)m_pImpl + 2) = v7 + 1; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source