//
// MusicDownloadManager::onTryUpdateSFXLibraryCompleted from 0x45a328 to 0x45a39a (114 bytes)
//
// 0 xrefs:
//
// 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 MusicDownloadManager::onTryUpdateSFXLibraryCompleted(
MusicDownloadManager *a1,
cocos2d::extension::CCHttpClient *a2,
cocos2d::extension::CCHttpResponse *a3)
{
char *v5[3]; // [sp+0h] [bp-Ch] BYREF
v5[0] = (char *)a1;
v5[1] = (char *)a2;
v5[2] = (char *)a3;
MusicDownloadManager::removeDLFromActive(a1, "v_sfx_l");
if ( a3 && a3->_succeed )
{
GameToolbox::getResponse((GameToolbox *)v5, a3);
if ( atoi(v5[0]) <= a1->m_sfxLibraryVersion )
MusicDownloadManager::musicActionFailed(a1, UpdateSFXLibrary);
else
MusicDownloadManager::downloadSFXLibrary(a1);
sub_774008(v5);
}
else
{
MusicDownloadManager::musicActionFailed(a1, (GJMusicAction)3);
}
}