// // cocos2d::CCMenuItemLabel::activate from 0x1003bf0e0 to 0x1003bf16e (142 bytes) // // 3 xrefs: // > @ 0x10092bd90 // > @ 0x10092cc90 // > @ 0x10092d178 // // 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::CCMenuItemLabel::activate(cocos2d::CCMenuItemLabel *a1) { cocos2d::CCObject *m_pListener; // rdi void (__cdecl *ptr)(cocos2d::CCObject *); // rax _QWORD *v4; // rdi cocos2d::CCScriptEngineManager *v5; // rax if ( a1->m_bEnabled ) { cocos2d::CCNode::stopAllActions(a1); ((void (__fastcall *)(cocos2d::CCMenuItemLabel *, float))a1->setScale)(a1, *(float *)&a1[1].m_uReference); 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::CCMenuItemLabel *))ptr)(v4, a1); } } if ( a1->m_eScriptType ) { v5 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, cocos2d::CCMenuItemLabel *))(**(_QWORD **)v5 + 80LL))(*(_QWORD *)v5, a1); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source