// // CustomSongWidget::downloadAssetFinished from 0x1400cd4a0 to 0x1400cd554 (180 bytes) // // 3 xrefs: // > CustomSongWidget::downloadSongFinished @ 0x1400ccf4d // > CustomSongWidget::downloadSFXFinished @ 0x1400cd06d // > @ 0x1406c83e8 // // 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 CustomSongWidget::downloadAssetFinished(CustomSongWidget *a1, int a2, GJAssetType a3) { std::_Vector_val>::pointer Myfirst; // rbx std::_Vector_val>::pointer Mylast; // rax GJAssetType m_assetType; // ecx std::map *p_m_songs; // rcx Myfirst = a1->m_undownloadedAssets._Mypair._Myval2._Myfirst; Mylast = a1->m_undownloadedAssets._Mypair._Myval2._Mylast; if ( Myfirst == Mylast ) return; while ( 1 ) { if ( Myfirst->m_id == a2 ) { m_assetType = Myfirst->m_assetType; if ( m_assetType == a3 ) break; } Myfirst = (std::_Vector_val>::pointer)((char *)Myfirst + 16); if ( Myfirst == Mylast ) return; } if ( m_assetType == 1 ) { p_m_songs = &a1->m_songs; LABEL_10: *(_BYTE *)sub_1400CDBF0(p_m_songs, Myfirst) = 1; goto LABEL_11; } if ( m_assetType == User ) { p_m_songs = &a1->m_sfx; goto LABEL_10; } LABEL_11: memmove( Myfirst, &Myfirst[1].m_assetType, (char *)a1->m_undownloadedAssets._Mypair._Myval2._Mylast - ((char *)Myfirst + 16)); a1->m_undownloadedAssets._Mypair._Myval2._Mylast = (std::_Vector_val>::pointer)((char *)a1->m_undownloadedAssets._Mypair._Myval2._Mylast - 16); if ( a1->m_undownloadedAssets._Mypair._Myval2._Myfirst != a1->m_undownloadedAssets._Mypair._Myval2._Mylast ) CustomSongWidget::updateMultiAssetInfo(a1, 0); CustomSongWidget::processNextMultiAsset(a1); }