//
// MusicDownloadManager::getSFXFolderPathForID from 0x100596950 to 0x1005969ed (157 bytes)
//
// 1 xrefs:
// > SFXBrowser::setupList @ 0x100440004
//
// 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
//
std::string *__fastcall MusicDownloadManager::getSFXFolderPathForID(std::string *this, __int64 a2, int a3, int a4)
{
SFXFolderObject *SFXFolderObjectForID; // rax
SFXFolderObject *v6; // r14
unsigned int i; // r12d
unsigned int sizex2; // ecx
const std::string::value_type *longStorage; // rdx
std::string::size_type size; // rcx
*(_WORD *)&this->__r_.__value_.__l.0 = 0;
SFXFolderObjectForID = MusicDownloadManager::getSFXFolderObjectForID((MusicDownloadManager *)this, a3);
v6 = SFXFolderObjectForID;
if ( a4 )
v6 = MusicDownloadManager::getSFXFolderObjectForID((MusicDownloadManager *)this, SFXFolderObjectForID->m_folderID);
for ( i = 0; v6 && i <= 9; ++i )
{
std::string::insert(this, 0, " \\ ");
sizex2 = v6->m_name.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
longStorage = v6->m_name.m_data.m_long.longStorage;
size = v6->m_name.m_data.m_long.size;
}
else
{
longStorage = v6->m_name.m_data.m_short.shortStorage.__elems_;
size = sizex2 >> 1;
}
std::string::insert(this, 0, longStorage, size);
v6 = MusicDownloadManager::getSFXFolderObjectForID((MusicDownloadManager *)this, v6->m_folderID);
}
return this;
}