Kylemc1413 / SongCore

A plugin for handling custom song additions in Beat Saber.
MIT License
86 stars 47 forks source link

How do you add a songs through code? #77

Closed Amiron49 closed 2 years ago

Amiron49 commented 2 years ago

https://github.com/Kylemc1413/SongCore/commit/457c10783fadd268c8a6d61acd140110531e3185#diff-cbb88464e61276928be0bf0df4cb563b12d7aa35bf11cde6e6675898b5d27234R55

In this commit, SongCore.Collections.AddSong was obsoleted and made an empty stub. And it looks like SongCore.Collections.AddExtraSongData now has the functionality that AddSongData had, but was changed from public to internal. So I SHOULDN'T use this method for adding songs... right?

Edit: I'm trying to fix/understand MultiplayerExtensions and it seems it relied on AddSong to add songs after downloading them

Kylemc1413 commented 2 years ago

Extra song data is loaded with the song itself being loaded, which is why those methods are no longer needed

Kylemc1413 commented 2 years ago

Any downloaded songs will be loaded after refreshing songs if they're in a folder songcore loads songs from

Amiron49 commented 2 years ago

Gotcha, thanks for clarifying that