// // CustomSongWidget::deleteSong from 0x1006faea0 to 0x1006fafc6 (294 bytes) // // 2 xrefs: // > CustomSongWidget::FLAlert_Clicked @ 0x1006fdbf6 // > sub_1006FDC00 @ 0x1006fdc5d // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:35:55 +0000 // void __fastcall CustomSongWidget::deleteSong(__int64 a1) { __int64 v2; // r14 __int64 v3; // rax bool isMusicPlaying; // r14 _QWORD *v5; // rax std::error_code *v6; // rax __int64 v7; // rdi float v8; // xmm0_4 __m128 v9; // xmm1 std::string v10; // [rsp+8h] [rbp-38h] BYREF __int16 v11; // [rsp+24h] [rbp-1Ch] BYREF char v12; // [rsp+26h] [rbp-1Ah] if ( *(_QWORD *)(a1 + 336) ) { v2 = FMODAudioEngine::sharedEngine(); v3 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(&v10, v3, *(_DWORD *)(*(_QWORD *)(a1 + 336) + 316LL)); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v2, (unsigned __int8 *)&v10, 0); if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v10.__r_.__value_.__l.__data_); if ( isMusicPlaying ) { v5 = (_QWORD *)FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v5, 1); } v6 = (std::error_code *)MusicDownloadManager::sharedState(); MusicDownloadManager::deleteSong(v6); CustomSongWidget::updateSongInfo(a1); v7 = *(_QWORD *)(a1 + 376); v12 = 0; v11 = 25855; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v7 + 1072LL))(v7, &v11); (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 376) + 928LL))( *(_QWORD *)(a1 + 376), "Song Deleted"); if ( *(_BYTE *)(a1 + 501) == 1 ) { v8 = 140.0; v9 = (__m128)0x3EB33333u; } else { v8 = 230.0; v9 = (__m128)0x3ECCCCCDu; } cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 376), v8, v9, (__m128)0LL); CustomSongWidget::showError(a1, 1); } }