//
// CustomSFXWidget::updateSFXObject from 0xa326d0 to 0xa3275c (140 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::init @ 0xa3303c
// > ??> @ 0x2cc70
//
// 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::updateSFXObject(CustomSFXWidget *a1, SFXInfoObject *a2)
{
SFXInfoObject *m_sfxObject; // x0
a1->m_errorLabel->setVisible(a1->m_errorLabel, 0);
m_sfxObject = a1->m_sfxObject;
if ( a2 != m_sfxObject )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
m_sfxObject = a1->m_sfxObject;
}
if ( m_sfxObject )
cocos2d::CCObject::release(m_sfxObject);
a1->m_sfxObject = a2;
m_sfxObject = a2;
}
if ( m_sfxObject )
a1->m_sfxID = m_sfxObject->m_sfxID;
else
a1->m_sfxID = 0;
CustomSFXWidget::updateSFXInfo(a1);
}