// // SetupShakePopup::sliderChanged from 0x140455c40 to 0x140455e55 (533 bytes) // // 2 xrefs: // > SetupShakePopup::init @ 0x14045575e // > @ 0x1406da8e0 // // 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 SetupShakePopup::sliderChanged(SetupShakePopup *a1, cocos2d::CCObject *a2) { float Value; // xmm0_4 float m_duration; // xmm0_4 const char *CString; // rax cocos2d::CCString *v7; // rax size_t v8; // r8 CCTextInputNode *m_durationInput; // rcx float m_interval; // xmm0_4 const char *v11; // rax cocos2d::CCString *v12; // rax size_t v13; // r8 float m_strength; // xmm0_4 const char *v15; // rax cocos2d::CCString *v16; // rax size_t v17; // r8 __int128 v18; // [rsp+20h] [rbp-38h] BYREF __int64 v19; // [rsp+30h] [rbp-28h] __int64 v20; // [rsp+38h] [rbp-20h] Value = SliderThumb::getValue((SliderThumb *)a2); if ( a2->getTag(a2) == 3 ) { a1->m_duration = Value + Value; GJFollowCommandLayer::updateDuration((__int64)a1); m_duration = a1->m_duration; CString = "Mixed"; a1->m_disableTextDelegate = 1; if ( m_duration != -99999.0 ) { v7 = cocos2d::CCString::createWithFormat("%.02f", m_duration); CString = cocos2d::CCString::getCString(v7); } v18 = 0; v19 = 0; v8 = -1; v20 = 0; do ++v8; while ( CString[v8] ); sub_14003A930(&v18, CString, v8); m_durationInput = a1->m_durationInput; } else if ( a2->getTag(a2) == 7 ) { a1->m_interval = Value * 0.1; SetupShakePopup::updateInterval(a1); m_interval = a1->m_interval; v11 = "Mixed"; a1->m_disableTextDelegate = 1; if ( m_interval != -99999.0 ) { v12 = cocos2d::CCString::createWithFormat("%.02f", m_interval); v11 = cocos2d::CCString::getCString(v12); } v18 = 0; v19 = 0; v13 = -1; v20 = 0; do ++v13; while ( v11[v13] ); sub_14003A930(&v18, v11, v13); m_durationInput = a1->m_intervalInput; } else { a1->m_strength = Value * 5.0; SetupShakePopup::updateShake(a1); m_strength = a1->m_strength; v15 = "Mixed"; a1->m_disableTextDelegate = 1; if ( m_strength != -99999.0 ) { v16 = cocos2d::CCString::createWithFormat("%.02f", m_strength); v15 = cocos2d::CCString::getCString(v16); } v18 = 0; v19 = 0; v17 = -1; v20 = 0; do ++v17; while ( v15[v17] ); sub_14003A930(&v18, v15, v17); m_durationInput = a1->m_strengthInput; } CCTextInputNode::setString((__int64)m_durationInput, &v18); a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source