//
// SFXBrowser::onUpdateLibrary from 0x14047f590 to 0x14047f5e6 (86 bytes)
//
// 2 xrefs:
// > SFXBrowser::init @ 0x14047ef02
// > ??> @ 0x1406db978
//
// 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 SFXBrowser::onUpdateLibrary(SFXBrowser *a1, cocos2d::CCObject *a2)
{
MusicDownloadManager *v3; // rax
MusicDownloadManager *v4; // rax
a1->m_autoUpdating = a2 == nullptr;
if ( MusicDownloadManager::sharedState()->m_customContentURL.m_data.m_size )
{
a1->m_gettingURL = 0;
v4 = MusicDownloadManager::sharedState();
MusicDownloadManager::tryUpdateSFXLibrary(v4);
}
else
{
a1->m_gettingURL = 1;
v3 = MusicDownloadManager::sharedState();
MusicDownloadManager::getCustomContentURL(v3);
}
}