// // CCMenuItemSpriteExtra::selected from 0x100213a3c to 0x100213c00 (452 bytes) // // 3 xrefs: // > @ 0x10079f100 // > @ 0x1007c2ce0 // > @ 0x1008158a0 // // 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 CCMenuItemSpriteExtra::selected(CCMenuItemSpriteExtra *a1) { std::string *p_m_selectSound; // x21 FMODAudioEngine *v3; // x20 float v4; // s8 __int64 v5; // x0 MenuAnimationType m_animationType; // w8 cocos2d::CCScaleTo *v7; // x0 cocos2d::CCEaseBounceOut *v8; // x20 CCMenuItemSpriteExtra *v9; // x0 cocos2d::CCAction *v10; // x1 cocos2d::CCNode *v11; // x20 float m_duration; // s8 cocos2d::CCMoveTo *v13; // x0 cocos2d::CCEaseInOut *v14; // x19 float32x2_t v15; // [xsp+0h] [xbp-50h] BYREF void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v17; // [xsp+1Fh] [xbp-31h] if ( !a1->m_bEnabled ) return; cocos2d::CCMenuItemSprite::selected(a1); if ( (a1->m_selectSound.m_data.m_short.shortStorage.__elems_[22] & 0x8000000000000000LL) != 0 ) { if ( !a1->m_selectSound.m_data.m_long.size ) goto LABEL_10; } else if ( !a1->m_selectSound.m_data.m_short.shortStorage.__elems_[22] ) { goto LABEL_10; } p_m_selectSound = &a1->m_selectSound; v3 = FMODAudioEngine::sharedEngine(); if ( a1->m_selectSound.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_selectSound = (std::string *)p_m_selectSound->m_data.m_long.capacitym1; sub_100009900(__p, (char *)p_m_selectSound); FMODAudioEngine::playEffect((__int64)v3, (__int64)__p, 1.0, 0.0, a1->m_volume); if ( v17 < 0 ) operator delete(__p[0]); LABEL_10: if ( a1->m_colorEnabled ) { v4 = a1->m_colorDip * 255.0; v5 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->getNormalImage)(a1); v15.i8[2] = (unsigned int)(65793 * (int)v4) >> 16; v15.i16[0] = 257 * (int)v4; (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 944LL))(v5, &v15); } if ( a1->m_animationEnabled ) { m_animationType = a1->m_animationType; if ( m_animationType == Move ) { v11 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->getNormalImage)(a1); cocos2d::CCNode::stopActionByTag(v11, 0); m_duration = a1->m_duration; sub_1000229DC((float32x2_t *)&a1->m_startPosition, (float32x2_t *)&a1->m_offset, &v15); v13 = cocos2d::CCMoveTo::create(m_duration, (const cocos2d::CCPoint *)&v15); v14 = cocos2d::CCEaseInOut::create(v13, 1.5); ((void (__fastcall *)(cocos2d::CCEaseInOut *, _QWORD))v14->setTag)(v14, 0); v9 = (CCMenuItemSpriteExtra *)v11; v10 = v14; } else { if ( m_animationType ) return; cocos2d::CCNode::stopActionByTag(a1, 0); v7 = cocos2d::CCScaleTo::create_1(a1->m_duration, a1->m_baseScale * a1->m_scaleMultiplier); v8 = cocos2d::CCEaseBounceOut::create(v7); ((void (__fastcall *)(cocos2d::CCEaseBounceOut *, _QWORD))v8->setTag)(v8, 0); v9 = a1; v10 = v8; } cocos2d::CCNode::runAction(v9, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source