// // cocos2d::CCMenuItemSprite::setNormalImage from 0x1003bfb70 to 0x1003bfc22 (178 bytes) // // 6 xrefs: // > @ 0x1008b1ee0 // > @ 0x1008ef6b0 // > @ 0x10090cc88 // > @ 0x10092c2c0 // > @ 0x10092c7c0 // > @ 0x100965828 // // 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::setNormalImage(cocos2d::CCMenuItemSprite *a1, cocos2d::CCNode *a2) { __int64 v2; // rax cocos2d::CCNode *m_pNormalImage; // rsi __int64 v5; // rax float v6[8]; // [rsp+0h] [rbp-20h] BYREF *(_QWORD *)v6 = v2; m_pNormalImage = a1->m_pNormalImage; if ( m_pNormalImage != a2 ) { if ( a2 ) { ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, _QWORD, __int64))a1->addChild_1)( a1, a2, 0, 1); sub_10028CBE0(v6, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCNode *, float *))a2->setAnchorPoint)(a2, v6); m_pNormalImage = a1->m_pNormalImage; } if ( m_pNormalImage ) ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, __int64))a1->removeChild_0)( a1, m_pNormalImage, 1); a1->m_pNormalImage = a2; v5 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getContentSize)(a2); ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, __int64))a1->setContentSize)(a1, v5); ((void (__fastcall *)(cocos2d::CCMenuItemSprite *))a1->updateImagesVisibility)(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source