//
// MusicDownloadManager::deleteSFX from 0x100596ad0 to 0x100596b1b (75 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::deleteSFX @ 0x1005e46b4
//
// 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 MusicDownloadManager::deleteSFX(MusicDownloadManager *a1, int a2)
{
double v2; // xmm0_8
std::string v3; // [rsp+8h] [rbp-18h] BYREF
MusicDownloadManager::pathForSFX(&v3, v2, (__int64)a1, a2);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) == 0 )
{
remove((const std::__fs::filesystem::path *)((char *)&v3.__r_.__value_.__l.0 + 1), (std::error_code *)a1);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) == 0 )
return;
goto LABEL_5;
}
remove((const std::__fs::filesystem::path *)v3.__r_.__value_.__l.__data_, (std::error_code *)a1);
if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )
LABEL_5:
operator delete(v3.__r_.__value_.__l.__data_);
}