// // CustomSFXWidget::deleteSFX from 0x56e390 to 0x56e446 (182 bytes) // // 1 xrefs: // > CustomSFXWidget::FLAlert_Clicked @ 0x56e496 // // 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 CustomSFXWidget::deleteSFX(CustomSFXWidget *a1) { MusicDownloadManager *v2; // r0 FMODAudioEngine *v3; // r0 MusicDownloadManager *v4; // r0 cocos2d::CCLabelBMFont *m_errorLabel; // r0 cocos2d::CCLabelBMFont_vtbl *v6; // r3 char v7; // [sp+4h] [bp-Ch] BYREF char v8[7]; // [sp+5h] [bp-Bh] BYREF if ( a1->m_sfxObject ) { v2 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSFX((MusicDownloadManager *)&v8[3], v2, a1->m_sfxObject->m_sfxID); v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllEffects(v3); v4 = MusicDownloadManager::sharedState(); MusicDownloadManager::deleteSFX(v4, a1->m_sfxObject->m_sfxID); CustomSFXWidget::updateSFXInfo(a1); a1->m_errorLabel->setVisible(a1->m_errorLabel, 1); m_errorLabel = a1->m_errorLabel; v6 = m_errorLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7 = -1; strcpy(v8, "d"); v6->setColor(m_errorLabel, (const cocos2d::ccColor3B *)&v7); a1->m_errorLabel->setString(a1->m_errorLabel, "SFX Deleted"); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0); sub_774008(&v8[3]); } }