// // cocos2d::CCMenuItem::activate from 0x5d544a to 0x5d5498 (78 bytes) // // 4 xrefs: // > CCMenuItemSpriteExtra::activate @ 0x2e6518 // > CCMenuItemToggler::activate @ 0x2e6a92 // > cocos2d::CCMenuItemToggle::activate @ 0x5d54c8 // > cocos2d::CCMenuItemLabel::activate @ 0x5d54ec // // 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 cocos2d::CCMenuItem::activate(cocos2d::CCMenuItem *a1) { signed int v1; // r1 cocos2d::CCObject *m_pListener; // r0 void (__cdecl *ptr)(cocos2d::CCObject *); // r2 signed int adj; // r3 int v6; // r3 char *v7; // r0 cocos2d::CCScriptEngineManager *v8; // r0 if ( a1->m_bEnabled ) { m_pListener = a1->m_pListener; if ( m_pListener ) { ptr = a1->m_pfnSelector.ptr; adj = a1->m_pfnSelector.adj; if ( ptr || (v1 = adj << 31, (adj & 1) != 0) ) { v6 = adj >> 1; if ( (a1->m_pfnSelector.adj & 1) != 0 ) v1 = *(signed int *)((char *)&m_pListener->__vftable + v6); v7 = (char *)m_pListener + v6; if ( (a1->m_pfnSelector.adj & 1) != 0 ) ptr = *(void (__cdecl **)(cocos2d::CCObject *))((char *)ptr + v1); ((void (__fastcall *)(char *, cocos2d::CCMenuItem *))ptr)(v7, a1); } } if ( a1->m_eScriptType ) { v8 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_DWORD, cocos2d::CCMenuItem *))(**(_DWORD **)v8 + 40))(*(_DWORD *)v8, a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source