//
// CustomSFXWidget::onDownload from 0x56df10 to 0x56df82 (114 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::FLAlert_Clicked @ 0x56e48a
//
// 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; // r0
MusicDownloadManager *v4; // r0
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);
}
}
}