// // CustomSongWidget::updateError from 0x100620710 to 0x1006207cf (191 bytes) // // 0 xrefs: // // 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; // rdi cocos2d::CCLabelBMFont *v4; // rdi void (__cdecl *setString)(cocos2d::CCLabelBMFont *__hidden, const char *); // rax cocos2d::CCLabelBMFont *v6; // rdi float v7; // xmm0_4 float v8; // xmm1_4 __int16 v9; // [rsp+Ch] [rbp-14h] BYREF char v10; // [rsp+Eh] [rbp-12h] m_errorLabel = a1->m_errorLabel; v10 = 25; v9 = 13055; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v9); v4 = a1->m_errorLabel; setString = v4->setString; if ( (unsigned int)(a2 - 1) > 2 ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))setString)(v4, "Download failed. Please try later."); v6 = a1->m_errorLabel; if ( !a1->m_isMusicLibrary ) goto LABEL_3; LABEL_5: v7 = 140.0; v8 = 0.34999999; goto LABEL_6; } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))setString)(v4, off_100982350[a2 - 1]); v6 = a1->m_errorLabel; if ( a1->m_isMusicLibrary ) goto LABEL_5; LABEL_3: v7 = 230.0; v8 = 0.40000001; LABEL_6: cocos2d::CCLabelBMFont::limitLabelWidth(v6, v7, v8, 0.0); CustomSongWidget::showError(a1, 0); }