// // cocos2d::CCIMEDispatcher::attachDelegateWithIME from 0x5f2b38 to 0x5f2b9a (98 bytes) // // 1 xrefs: // > cocos2d::CCIMEDelegate::attachWithIME @ 0x5f2db0 // // 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 // bool cocos2d::CCIMEDispatcher::attachDelegateWithIME(cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2) { cocos2d::CCIMEDispatcher::Impl *m_pImpl; // r7 cocos2d::CCIMEDelegate **Delegate; // r6 int v6; // r0 int v7; // r0 m_pImpl = a1->m_pImpl; if ( a1->m_pImpl ) { if ( a2 ) { Delegate = cocos2d::CCIMEDispatcher::Impl::findDelegate((cocos2d::CCIMEDelegate ***)a1->m_pImpl, a2); if ( m_pImpl != (cocos2d::CCIMEDispatcher::Impl *)Delegate ) { v6 = *((_DWORD *)a1->m_pImpl + 2); if ( v6 ) { if ( (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 24))(v6) && ((int (__fastcall *)(cocos2d::CCIMEDelegate *))a2->canAttachWithIME)(a2) ) { v7 = *((_DWORD *)a1->m_pImpl + 2); *((_DWORD *)a1->m_pImpl + 2) = 0; (*(void (__fastcall **)(int))(*(_DWORD *)v7 + 28))(v7); LABEL_9: *((_DWORD *)a1->m_pImpl + 2) = Delegate[2]; a2->didAttachWithIME(a2); return 1; } } else if ( ((int (__fastcall *)(cocos2d::CCIMEDelegate *))a2->canAttachWithIME)(a2) ) { goto LABEL_9; } } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source