//
// CustomSFXWidget::updateDownloadProgress from 0x1002f15ec to 0x1002f1654 (104 bytes)
//
// 3 xrefs:
// > CustomSFXWidget::startMonitorDownload @ 0x1002f131c
// > CustomSFXWidget::updateDownloadProgress @ 0x1002f161c
// > CustomSFXWidget::downloadFailed @ 0x1002f1668
//
// 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 CustomSFXWidget::updateDownloadProgress(CustomSFXWidget *a1, float a2)
{
MusicDownloadManager *v3; // x0
int SFXDownloadProgress; // w0
bool v5; // zf
cocos2d::SEL_SCHEDULE v6; // 0:x1.16
v3 = MusicDownloadManager::sharedState();
SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(v3, a1->m_sfxObject->m_sfxID);
if ( a1->m_sfxObject )
v5 = SFXDownloadProgress == -1;
else
v5 = 1;
if ( v5 )
{
v6.ptr = (void (__cdecl *)(float))CustomSFXWidget::updateDownloadProgress;
v6.adj = 0;
cocos2d::CCNode::unschedule(a1, v6);
CustomSFXWidget::updateSFXInfo(a1);
}
else
{
CustomSFXWidget::updateProgressBar(a1, SFXDownloadProgress);
}
}