// // CustomSongWidget::updateProgressBar from 0x744004 to 0x7440b4 (176 bytes) // // 4 xrefs: // > CustomSongWidget::startMonitorDownload @ 0x7440cc // > CustomSongWidget::init @ 0x7461c0 // > CustomSongWidget::updateDownloadProgress @ 0x746c18 // > @ 0x5b7e8 // // 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 CustomSongWidget::updateProgressBar(CustomSongWidget *a1, int a2) { float v2; // s0 float v3; // s2 cocos2d::CCSprite *m_sliderBar; // x20 void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x21 cocos2d::CCRect v6; // [xsp+48h] [xbp+48h] BYREF if ( a2 < 0 ) a2 = 0; v2 = a1->m_sliderGroove->m_obRect.size.width - 4.0; v3 = (float)((float)a2 / 100.0) * v2; if ( v2 <= v3 ) v3 = a1->m_sliderGroove->m_obRect.size.width - 4.0; m_sliderBar = a1->m_sliderBar; setTextureRect = m_sliderBar->setTextureRect; cocos2d::CCRect::CCRect(&v6, 0.0, 0.0, v3, 8.0); setTextureRect(m_sliderBar, &v6); }