// // CustomSFXWidget::deleteSFX from 0xa324a4 to 0xa3262c (392 bytes) // // 2 xrefs: // > CustomSFXWidget::FLAlert_Clicked @ 0xa326c4 // > @ 0x6dfc8 // // 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; // x0 FMODAudioEngine *v3; // x0 MusicDownloadManager *v4; // x0 cocos2d::CCLabelBMFont *m_errorLabel; // x0 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x2 void *v7; // x0 unsigned int *v8; // x2 int v9; // w1 char v10; // [xsp+38h] [xbp+38h] BYREF __int16 v11; // [xsp+39h] [xbp+39h] __int64 v12; // [xsp+40h] [xbp+40h] BYREF if ( a1->m_sfxObject ) { v2 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSFX(&v12, 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; setColor = m_errorLabel->setColor; v10 = -1; v11 = 100; setColor(m_errorLabel, (const cocos2d::ccColor3B *)&v10); a1->m_errorLabel->setString(a1->m_errorLabel, "SFX Deleted"); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.4, 0.0); v7 = (void *)(v12 - 24); if ( (__int64 *)(v12 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v12 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v12 - 8); *(_DWORD *)(v12 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v7); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source