//
// CustomSFXWidget::onDownload from 0xa31cc4 to 0xa31d8c (200 bytes)
//
// 4 xrefs:
// > CustomSFXWidget::FLAlert_Clicked @ 0xa326b0
// > ??> @ 0x82470
// > CustomSFXWidget::init @ 0xa32b10
// > ??> @ 0x122c648
//
// 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 CustomSFXWidget::onDownload(CustomSFXWidget *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
MusicDownloadManager *v4; // x0
a1->m_errorLabel->setVisible(a1->m_errorLabel, 0);
if ( a1->m_sfxObject )
{
v3 = GameManager::sharedState();
if ( GameManager::getGameVariable(v3, "0016") )
{
CustomSFXWidget::showLoadingArt(a1);
a1->m_downloadButton->setVisible(a1->m_downloadButton, 0);
a1->m_cancelButton->setVisible(a1->m_cancelButton, 1);
a1->m_deleteButton->setVisible(a1->m_deleteButton, 0);
CustomSFXWidget::startDownload(a1);
}
else
{
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::showTOS(v4, &a1->FLAlertLayerProtocol);
}
}
}