// // CustomSongWidget::downloadSongFinished from 0x100620990 to 0x100620a42 (178 bytes) // // 2 xrefs: // > sub_100620C60 @ 0x100620c6c // > @ 0x100982250 // // 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) { cocos2d::CCLabelBMFont *m_errorLabel; // rdi float v4; // xmm0_4 float v5; // xmm1_4 if ( a1->m_hasSFX ) { CustomSongWidget::downloadAssetFinished(a1, a2, (GJAssetType)1); } else if ( a1->m_customSongID == a2 && a1->m_customSongID != 0 ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_errorLabel->setColor)( a1->m_errorLabel, &unk_100822625); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)( a1->m_errorLabel, "Download complete."); m_errorLabel = a1->m_errorLabel; if ( a1->m_isMusicLibrary ) { v4 = 140.0; v5 = 0.34999999; } else { v4 = 230.0; v5 = 0.40000001; } cocos2d::CCLabelBMFont::limitLabelWidth(m_errorLabel, v4, v5, 0.0); CustomSongWidget::showError(a1, 1); } }