// // Slider::disableSlider from 0x1003049e0 to 0x100304b64 (388 bytes) // // 1 xrefs: // > MusicBrowser::update @ 0x10060f0e6 // // 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 Slider::disableSlider(Slider *a1) { SliderThumb *m_thumb; // rbx _BOOL8 m_vertical; // r14 __m128 v4; // xmm2 cocos2d::CCSprite *m_sliderBar; // rbx __int64 v6; // rax __int16 v7; // [rsp-38h] [rbp-38h] BYREF char v8; // [rsp-36h] [rbp-36h] unsigned int m_length_low; // [rsp-28h] [rbp-28h] float m_length; // [rsp-24h] [rbp-24h] if ( a1->m_enabled ) { a1->m_enabled = 0; ((void (__fastcall *)(SliderTouchLogic *, _QWORD))a1->m_touchLogic->setTouchEnabled)(a1->m_touchLogic, 0); SliderThumb::setValue(a1->m_touchLogic->m_thumb, 0.0); m_thumb = a1->m_touchLogic->m_thumb; m_vertical = m_thumb->m_vertical; m_length = *(float *)(((__int64 (__fastcall *)(SliderThumb *))m_thumb->getPosition)(m_thumb) + 4 * m_vertical); m_length_low = LODWORD(m_thumb->m_length); *(float *)&m_length_low = (float)((float)(*(float *)&m_length_low * ((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb)) * 0.5) + m_length; m_length = m_thumb->m_length; v4 = (__m128)m_length_low; v4.f32[0] = fminf( (float)(*(float *)&m_length_low / (float)(((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb) * m_length)) * a1->m_width, a1->m_width); m_sliderBar = a1->m_sliderBar; sub_10028CC00((__int64)&v7, 0.0, 0.0, v4, (__m128)LODWORD(a1->m_height)); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_sliderBar->setTextureRect)(m_sliderBar, &v7); v8 = -106; v7 = -26986; ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))a1->m_sliderBar->setColor)(a1->m_sliderBar, &v7); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))a1->m_groove->setColor)(a1->m_groove, &v7); v6 = ((__int64 (__fastcall *)(SliderThumb *))a1->m_touchLogic->m_thumb->getNormalImage)(a1->m_touchLogic->m_thumb); if ( v6 ) (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 944LL))(v6, &v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source