From 53f8ba176afe9a3a2286335795b06a50d8f2a22b Mon Sep 17 00:00:00 2001 From: andy840119 Date: Mon, 21 Feb 2022 21:08:22 +0800 Subject: [PATCH] should apply those convertors into encoder/decoder. --- .../Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs | 3 +++ .../Beatmaps/Formats/KaraokeJsonBeatmapEncoder.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs index 9c6f7d9be..c5c3db3fd 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs @@ -17,8 +17,11 @@ protected override void ParseStreamInto(LineBufferedReader stream, Beatmap outpu var globalSetting = JsonSerializableExtensions.CreateGlobalSettings(); globalSetting.Converters.Add(new CultureInfoConverter()); globalSetting.Converters.Add(new RomajiTagConverter()); + globalSetting.Converters.Add(new RomajiTagsConverter()); globalSetting.Converters.Add(new RubyTagConverter()); + globalSetting.Converters.Add(new RubyTagsConverter()); globalSetting.Converters.Add(new TimeTagConverter()); + globalSetting.Converters.Add(new TimeTagsConverter()); globalSetting.Converters.Add(new ToneConverter()); // create id if object is by reference. diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapEncoder.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapEncoder.cs index d28cde283..27feee1ce 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapEncoder.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapEncoder.cs @@ -15,8 +15,11 @@ public string Encode(Beatmap output) var globalSetting = JsonSerializableExtensions.CreateGlobalSettings(); globalSetting.Converters.Add(new CultureInfoConverter()); globalSetting.Converters.Add(new RomajiTagConverter()); + globalSetting.Converters.Add(new RomajiTagsConverter()); globalSetting.Converters.Add(new RubyTagConverter()); + globalSetting.Converters.Add(new RubyTagsConverter()); globalSetting.Converters.Add(new TimeTagConverter()); + globalSetting.Converters.Add(new TimeTagsConverter()); globalSetting.Converters.Add(new ToneConverter()); // replace string stream.ReadToEnd().Serialize(output);