//
// MusicDownloadManager::getCustomSFXFolderPath from 0x56f348 to 0x56f3ca (130 bytes)
//
// 1 xrefs:
// > SFXBrowser::setupList @ 0x6c5ee8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:52:36 +0000
//
MusicDownloadManager *__fastcall MusicDownloadManager::getCustomSFXFolderPath(
MusicDownloadManager *this,
MusicDownloadManager *a2,
int a3,
int a4)
{
int CustomSFXFolderForID; // r4
int v9; // r6
int v10; // r3
char *v11; // r2
size_t v12; // r3
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID(a2, a3);
if ( CustomSFXFolderForID && a4 )
CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID(a2, *(_DWORD *)(CustomSFXFolderForID + 56));
v9 = 11;
while ( CustomSFXFolderForID )
{
if ( !--v9 )
break;
std::string::insert(this, 0, " \\ ");
v10 = *(unsigned __int8 *)(CustomSFXFolderForID + 76);
if ( (v10 & 1) != 0 )
{
v11 = *(char **)(CustomSFXFolderForID + 84);
v12 = *(_DWORD *)(CustomSFXFolderForID + 80);
}
else
{
v11 = (char *)(CustomSFXFolderForID + 77);
v12 = v10 >> 1;
}
std::string::insert(this, 0, v11, v12);
CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID(a2, *(_DWORD *)(CustomSFXFolderForID + 56));
}
return this;
}