//
// SFXBrowser::trySetupSFXBrowser from 0x100169a7c to 0x100169ad8 (92 bytes)
//
// 2 xrefs:
// > SFXBrowser::init @ 0x1001695c0
// > SFXBrowser::musicActionFinished @ 0x10016a2d4
//
// 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 SFXBrowser::trySetupSFXBrowser(SFXBrowser *a1)
{
MusicDownloadManager *v2; // x0
std::size_t size; // x19
MusicDownloadManager *v4; // x0
if ( MusicDownloadManager::sharedState()->m_sfxObjects )
{
SFXBrowser::setupSFXBrowser(a1);
}
else
{
v2 = MusicDownloadManager::sharedState();
size = v2->m_customContentURL.m_data.m_short.shortStorage.__elems_[22];
if ( (size & 0x8000000000000000LL) != 0 )
size = v2->m_customContentURL.m_data.m_long.size;
v4 = MusicDownloadManager::sharedState();
if ( size )
MusicDownloadManager::downloadSFXLibrary(v4);
else
MusicDownloadManager::getCustomContentURL(v4);
}
}