// // MusicDownloadManager::limitDownloadedSongs from 0x100155fe4 to 0x10015606c (136 bytes) // // 1 xrefs: // > MusicDownloadManager::onDownloadSongCompleted @ 0x100156948 // // 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 __fastcall MusicDownloadManager::limitDownloadedSongs(MusicDownloadManager *a1) { int m_customMenuSongID; // w21 int m_customPracticeSongID; // w22 cocos2d::CCArray *DownloadedSongs; // x20 int v5; // w1 m_customMenuSongID = GameManager::sharedState()->m_customMenuSongID; m_customPracticeSongID = GameManager::sharedState()->m_customPracticeSongID; DownloadedSongs = MusicDownloadManager::getDownloadedSongs(a1); if ( (unsigned int)sub_10024A36C(DownloadedSongs) >= 0x33 ) { do { v5 = *(_DWORD *)(sub_10024A398(DownloadedSongs) + 316); if ( v5 != m_customMenuSongID && v5 != m_customPracticeSongID ) MusicDownloadManager::deleteSong(a1, v5); sub_10024A430(DownloadedSongs, 1); } while ( (unsigned int)sub_10024A36C(DownloadedSongs) > 0x32 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source