// // cocos2d::CCMenuItem::activate from 0x1003be9f0 to 0x1003bea5c (108 bytes) // // 6 xrefs: // > CCMenuItemToggler::activate @ 0x100059e89 // > CCMenuItemSpriteExtra::activate @ 0x100276ee3 // > @ 0x10090cc40 // > @ 0x10092b3f8 // > @ 0x10092c278 // > @ 0x10092c778 // // 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; // rdi void (__cdecl *ptr)(cocos2d::CCObject *); // rax _QWORD *v4; // rdi cocos2d::CCScriptEngineManager *v5; // rax if ( a1->m_bEnabled ) { m_pListener = a1->m_pListener; if ( m_pListener ) { ptr = a1->m_pfnSelector.ptr; if ( ptr ) { v4 = (cocos2d::CCObject_vtbl **)((char *)&m_pListener->__vftable + a1->m_pfnSelector.adj); if ( ((unsigned __int8)ptr & 1) != 0 ) ptr = *(void (__cdecl **)(cocos2d::CCObject *))((char *)ptr + *v4 - 1); ((void (__fastcall *)(_QWORD *, cocos2d::CCMenuItem *))ptr)(v4, a1); } } if ( a1->m_eScriptType ) { v5 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItem *))(**(_QWORD **)v5 + 80LL))(*(_QWORD *)v5, a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source