//
// MusicDownloadManager::deleteSFX from 0x571c3c to 0x571c8a (78 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::deleteSFX @ 0x6a6c80
//
// 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:52:38 +0000
//
int __fastcall MusicDownloadManager::deleteSFX(MusicDownloadManager *this, unsigned int a2)
{
char *v2; // r0
char v4; // [sp+0h] [bp-14h] BYREF
char v5; // [sp+1h] [bp-13h] BYREF
char *filename; // [sp+8h] [bp-Ch]
MusicDownloadManager::pathForSFX((MusicDownloadManager *)&v4, this, a2);
if ( (v4 & 1) != 0 )
v2 = filename;
else
v2 = &v5;
remove(v2);
return std::string::~string((int)&v4);
}