// // CustomSongWidget::deleteSong from 0x10061e910 to 0x10061ea36 (294 bytes) // // 2 xrefs: // > CustomSongWidget::FLAlert_Clicked @ 0x100621476 // > sub_100621480 @ 0x1006214dd // // 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::deleteSong(CustomSongWidget *a1) { double v1; // xmm0_8 FMODAudioEngine *v3; // r14 MusicDownloadManager *v4; // rax bool isMusicPlaying; // r14 FMODAudioEngine *v6; // rax MusicDownloadManager *v7; // rax cocos2d::CCLabelBMFont *m_errorLabel; // rdi float v9; // xmm0_4 float v10; // xmm1_4 std::string v11; // [rsp+8h] [rbp-38h] BYREF __int16 v12; // [rsp+24h] [rbp-1Ch] BYREF char v13; // [rsp+26h] [rbp-1Ah] if ( a1->m_songInfoObject ) { v3 = FMODAudioEngine::sharedEngine(); v4 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(&v11, v1, (__int64)v4, a1->m_songInfoObject->m_songID); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v3, (unsigned __int8 *)&v11, 0); if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v11.__r_.__value_.__l.__data_); if ( isMusicPlaying ) { v6 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v6, 1); } v7 = MusicDownloadManager::sharedState(); MusicDownloadManager::deleteSong(v7, a1->m_songInfoObject->m_songID); CustomSongWidget::updateSongInfo(a1); m_errorLabel = a1->m_errorLabel; v13 = 0; v12 = 25855; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v12); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)( a1->m_errorLabel, "Song Deleted"); if ( a1->m_isMusicLibrary ) { v9 = 140.0; v10 = 0.34999999; } else { v9 = 230.0; v10 = 0.40000001; } cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, v9, v10, 0.0); CustomSongWidget::showError(a1, 1); } }