// // cocos2d::CCMenuItem::activate from 0x10004cc4c to 0x10004cccc (128 bytes) // // 4 xrefs: // > CCMenuItemToggler::activate @ 0x1001912e0 // > CCMenuItemSpriteExtra::activate @ 0x100213a08 // > @ 0x100770e40 // > @ 0x1007e7550 // // 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::CCMenuItem::activate(cocos2d::CCMenuItem *a1) { cocos2d::CCObject *m_pListener; // x9 void (__cdecl *ptr)(cocos2d::CCObject *); // x8 signed __int64 adj; // x11 _QWORD *v5; // x0 cocos2d::CCScriptEngineManager *v6; // x0 if ( a1->m_bEnabled ) { m_pListener = a1->m_pListener; if ( m_pListener ) { ptr = a1->m_pfnSelector.ptr; adj = a1->m_pfnSelector.adj; if ( adj & 1 | (unsigned __int64)ptr ) { v5 = (cocos2d::CCObject_vtbl **)((char *)&m_pListener->__vftable + (adj >> 1)); if ( (adj & 1) != 0 ) ptr = *(void (__cdecl **)(cocos2d::CCObject *))(*v5 + (unsigned int)ptr); ((void (__fastcall *)(_QWORD *, cocos2d::CCMenuItem *))ptr)(v5, a1); } } if ( a1->m_eScriptType ) { v6 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItem *))(**(_QWORD **)v6 + 80LL))(*(_QWORD *)v6, a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source