Skip to content

Commit

Permalink
Fixed custom song loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
71 committed Aug 26, 2018
1 parent 537b489 commit 419b920
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1,362 deletions.
6 changes: 2 additions & 4 deletions BeatSinger/Helpers/LyricsFetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ public static class LyricsFetcher
/// </summary>
public static bool GetLocalLyrics(string songId, List<Subtitle> subtitles)
{
string songDirectory = SongLoader.CustomLevels.Find(x => x.levelID == songId)
string songDirectory = SongLoader.CustomLevels.Find(x => x.customSongInfo.GetIdentifier() == songId)
?.customSongInfo
?.GetAudioPath();
?.path;
if (songDirectory == null)
return false;

Debug.Log("Found song directory: " + songDirectory);

// Find JSON lyrics
string jsonFile = Path.Combine(songDirectory, "lyrics.json");

Expand Down
Loading

0 comments on commit 419b920

Please sign in to comment.