//
// CustomSFXWidget::deleteSFX from 0x1002f1354 to 0x1002f142c (216 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::FLAlert_Clicked @ 0x1002f185c
//
// 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 CustomSFXWidget::deleteSFX(CustomSFXWidget *a1)
{
FMODAudioEngine *v2; // x0
MusicDownloadManager *v3; // x0
cocos2d::CCLabelBMFont *m_errorLabel; // x0
__int16 v5; // [xsp+4h] [xbp-2Ch] BYREF
char v6; // [xsp+6h] [xbp-2Ah]
std::string __p; // [xsp+8h] [xbp-28h] BYREF
if ( a1->m_sfxObject )
{
MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSFX((unsigned int)a1->m_sfxObject->m_sfxID, &__p);
v2 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllEffects(v2);
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::deleteSFX(v3, a1->m_sfxObject->m_sfxID);
CustomSFXWidget::updateSFXInfo(a1);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 1);
m_errorLabel = a1->m_errorLabel;
v6 = 0;
v5 = 25855;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(
a1->m_errorLabel,
"SFX Deleted");
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
}