// // CustomSongWidget::deleteSong from 0x4e3eb4 to 0x4e3f8c (216 bytes) // // 1 xrefs: // > CustomSongWidget::FLAlert_Clicked @ 0x4e5cd2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:51:03 +0000 // FMODAudioEngine *__fastcall CustomSongWidget::deleteSong(FMODAudioEngine *this) { FMODAudioEngine *v1; // r4 MusicDownloadManager *v2; // r7 int v3; // r0 int v4; // r3 _BOOL4 isMusicPlaying; // r7 char **v6; // r0 FMODAudioEngine *v7; // r0 MusicDownloadManager *v8; // r0 int *v9; // r0 int v10; // r3 float v11; // r1 float v12; // r2 char v13; // [sp+4h] [bp-18h] BYREF char v14[15]; // [sp+5h] [bp-17h] BYREF v1 = this; if ( *((_DWORD *)this + 68) ) { v2 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(this); v3 = MusicDownloadManager::sharedState(v2); MusicDownloadManager::pathForSong((MusicDownloadManager *)&v14[3], v3); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v2, (unsigned __int8 *)&v14[3], 0, v4); v6 = (char **)std::string::~string((int)&v14[3]); if ( isMusicPlaying ) { v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v6); v6 = FMODAudioEngine::stopAllMusic(v7, 1); } v8 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v6); MusicDownloadManager::deleteSong(v8, *(_DWORD *)(*((_DWORD *)v1 + 68) + 264)); CustomSongWidget::updateSongInfo(v1); v9 = *((int **)v1 + 73); v10 = *v9; v13 = -1; strcpy(v14, "d"); (*(void (__fastcall **)(int *, char *))(v10 + 536))(v9, &v13); (*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)v1 + 73) + 464))(*((_DWORD *)v1 + 73), "Song Deleted"); if ( *((_BYTE *)v1 + 357) ) { v11 = 140.0; v12 = 0.35; } else { v11 = 230.0; v12 = 0.4; } cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)v1 + 73), v11, v12, 0.0); return (FMODAudioEngine *)CustomSongWidget::showError((cocos2d::CCNode **)v1, 1); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source