//
// MusicDownloadManager::getSFXFolderObjectForID from 0x10015ac90 to 0x10015acfc (108 bytes)
//
// 6 xrefs:
// > MusicDownloadManager::getSFXFolderPathForID @ 0x10015ad2c
// > MusicDownloadManager::getSFXFolderPathForID @ 0x10015ad3c
// > MusicDownloadManager::getSFXFolderPathForID @ 0x10015ada0
// > SFXBrowser::onExitFolder @ 0x100169694
// > SFXBrowser::setupSFXBrowser @ 0x100169b0c
// > SFXBrowser::setupSFXBrowser @ 0x100169b20
//
// 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
//
SFXFolderObject *__fastcall MusicDownloadManager::getSFXFolderObjectForID(MusicDownloadManager *a1, int a2)
{
cocos2d::CCDictionary *m_sfxObjects; // x0
cocos2d::CCObject *v4; // x0
SFXFolderObject *v5; // x19
cocos2d::CCDictionary *v6; // x0
cocos2d::CCObject *v7; // x0
m_sfxObjects = MusicDownloadManager::sharedState()->m_sfxObjects;
if ( !m_sfxObjects )
return nullptr;
v4 = cocos2d::CCDictionary::objectForKey(m_sfxObjects, a2);
v5 = (SFXFolderObject *)v4;
if ( v4 )
{
if ( (v4[1].m_nTag & 1) == 0 )
{
v6 = MusicDownloadManager::sharedState()->m_sfxObjects;
if ( !v6 )
return nullptr;
v7 = cocos2d::CCDictionary::objectForKey(v6, v5->m_folderID);
if ( !v7 )
return nullptr;
v5 = (SFXFolderObject *)v7;
if ( (v7[1].m_nTag & 1) == 0 )
return nullptr;
}
}
return v5;
}