//
// CustomSongWidget::updateDownloadProgress from 0x746bd8 to 0x746c40 (104 bytes)
//
// 6 xrefs:
// > ??> @ 0x59718
// > CustomSongWidget::startMonitorDownload @ 0x7440ec
// > CustomSongWidget::startMonitorDownload @ 0x744100
// > CustomSongWidget::downloadFailed @ 0x746b54
// > CustomSongWidget::updateDownloadProgress @ 0x746c28
// > ??> @ 0x122ade8
//
// 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::updateDownloadProgress(CustomSongWidget *a1, float a2)
{
MusicDownloadManager *v3; // x0
int DownloadProgress; // w1
cocos2d::SEL_SCHEDULE v5; // 0:x1.16
v3 = MusicDownloadManager::sharedState();
DownloadProgress = MusicDownloadManager::getDownloadProgress(v3, a1->m_songInfoObject->m_songID);
if ( DownloadProgress == -1 || !a1->m_songInfoObject )
{
v5.adj = 0;
v5.ptr = (void (__cdecl *)(float))CustomSongWidget::updateDownloadProgress;
cocos2d::CCNode::unschedule(a1, v5);
CustomSongWidget::updateSongInfo(a1);
}
else
{
CustomSongWidget::updateProgressBar(a1, DownloadProgress);
}
}