// // cocos2d::CCMenuItemSprite::selected from 0x18005b500 to 0x18005b5a3 (163 bytes) // // 7 xrefs: // > @ 0x1800f86d0 // > @ 0x1800f8b30 // > @ 0x180138e20 // > @ 0x180138e30 // > @ 0x1801438a8 // > @ 0x1801b2e14 // > @ 0x1801b2e20 // // 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::CCMenuItemSprite::selected(cocos2d::CCMenuItemSprite *this, __int64 a2) { bool v2; // zf cocos2d::CCNode **p_m_pNormalImage; // rsi cocos2d::CCNode *m_pSelectedImage; // rcx cocos2d::CCNode **v6; // r14 cocos2d::CCNode *v7; // rcx cocos2d::CCNode_vtbl *v8; // rax v2 = this->m_pNormalImage == nullptr; this->m_bSelected = 1; if ( !v2 || this->m_pSelectedImage ) { p_m_pNormalImage = &this->m_pNormalImage; if ( *(_QWORD *)&this->m_nScriptTapHandler ) { m_pSelectedImage = this->m_pSelectedImage; v6 = &this->m_pNormalImage; if ( m_pSelectedImage ) { ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))m_pSelectedImage->setVisible)(m_pSelectedImage, 0); v6 = p_m_pNormalImage; } v7 = *(cocos2d::CCNode **)&this->m_nScriptTapHandler; v8 = v7->__vftable; if ( this->m_pNormalImage ) { ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v8->setVisible)(v7, 0); v7 = *v6; v8 = (*v6)->__vftable; } LOBYTE(a2) = 1; ((void (__fastcall *)(cocos2d::CCNode *, __int64))v8->setVisible)(v7, a2); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source