public bool ReadPlaylist() { string oldFormatPath = Path.Combine(OldConfig.BeatSaberPath, "Playlists", fileName + ".json"); string newFormatPath = Path.Combine(OldConfig.BeatSaberPath, "Playlists", fileName + ".bplist"); oldFormat = !File.Exists(newFormatPath); Logger.Info($"Playlist {Title} found in {(oldFormat ? "old" : "new")} playlist format."); if (File.Exists(oldFormat ? oldFormatPath : newFormatPath)) { PlaylistIO.ReadPlaylistSongs(this); /* * if (playlist != null) * { * Title = playlist.Title; * Author = playlist.Author; * Image = playlist.Image; * Songs = playlist.Songs; * fileLoc = playlist.fileLoc; * Logger.Info("Success loading playlist!"); * return true; * }*/ } return(false); }
public void WritePlaylist() { PlaylistIO.WritePlaylist(this); }