//
// CustomSongWidget::updateError from 0x1000fe034 to 0x1000fe0fc (200 bytes)
//
// 2 xrefs:
// > CustomSongWidget::loadSongInfoFailed @ 0x1000fdfe8
// > CustomSongWidget::downloadSongFailed @ 0x1000fe370
//
// 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::updateError(CustomSongWidget *a1, GJSongError a2)
{
cocos2d::CCLabelBMFont *m_errorLabel; // x0
const char *v5; // x1
float v6; // s0
float v7; // s1
__int16 v8; // [xsp+Ch] [xbp-14h] BYREF
char v9; // [xsp+Eh] [xbp-12h]
m_errorLabel = a1->m_errorLabel;
v9 = 25;
v8 = 13055;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v8);
if ( (unsigned int)(a2 - 1) > 2 )
v5 = "Download failed. Please try later.";
else
v5 = off_100787328[a2 - 1];
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(a1->m_errorLabel, v5);
if ( a1->m_isMusicLibrary )
{
v6 = 140.0;
v7 = 0.35;
}
else
{
v6 = 230.0;
v7 = 0.4;
}
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, v6, v7, 0.0);
CustomSongWidget::showError(a1, 0);
}