//
// CustomSongWidget::downloadSongFinished from 0x1000fe138 to 0x1000fe204 (204 bytes)
//
// 2 xrefs:
// > sub_1000FE314 @ 0x1000fe318
// > ??> @ 0x100787218
//
// 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 CustomSongWidget::downloadSongFinished(CustomSongWidget *a1, int a2)
{
int m_customSongID; // w8
float v5; // s0
float v6; // s1
if ( a1->m_hasSFX )
{
CustomSongWidget::downloadAssetFinished(a1, a2, (GJAssetType)1);
}
else
{
m_customSongID = a1->m_customSongID;
if ( m_customSongID == a2 && m_customSongID != 0 )
{
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_errorLabel->setColor)(
a1->m_errorLabel,
&unk_100636BC9);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(
a1->m_errorLabel,
"Download complete.");
if ( a1->m_isMusicLibrary )
{
v5 = 140.0;
v6 = 0.35;
}
else
{
v5 = 230.0;
v6 = 0.4;
}
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, v5, v6, 0.0);
CustomSongWidget::showError(a1, 1);
}
}
}