// // MusicDownloadManager::limitDownloadedSongs from 0x459a0c to 0x459a58 (76 bytes) // // 1 xrefs: // > MusicDownloadManager::onDownloadSongCompleted @ 0x459b12 // // 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::limitDownloadedSongs(MusicDownloadManager *a1) { int m_customMenuSongID; // r6 int m_customPracticeSongID; // r7 cocos2d::CCArray *i; // r4 int v5; // r1 m_customMenuSongID = GameManager::sharedState()->m_customMenuSongID; m_customPracticeSongID = GameManager::sharedState()->m_customPracticeSongID; for ( i = MusicDownloadManager::getDownloadedSongs(a1); cocos2d::CCArray::count(i) > 0x32u; cocos2d::CCArray::removeLastObject(i, 1) ) { v5 = *(_DWORD *)(cocos2d::CCArray::lastObject(i) + 264); if ( v5 != m_customMenuSongID && v5 != m_customPracticeSongID ) MusicDownloadManager::deleteSong(a1, v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source