From 91787f623fd2eb2a57ca54f80421efee58f7c79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=BA=E4=BB=80=E9=BA=BC?= Date: Sat, 9 Jul 2022 18:56:11 +0800 Subject: [PATCH 1/2] Update osu.game to the latest. --- osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj index e4e7c488f..cbb3df880 100644 --- a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj +++ b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj @@ -19,7 +19,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + From fd1316846ade70e5aa7f172c2c2b944f6581e509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=BA=E4=BB=80=E9=BA=BC?= Date: Sat, 9 Jul 2022 18:57:01 +0800 Subject: [PATCH 2/2] Fix the broken API. --- .../Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs index 4a00678b3..99991f8a7 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs @@ -42,7 +42,7 @@ protected override void ParseStreamInto(LineBufferedReader stream, Beatmap outpu globalSetting.PreserveReferencesHandling = PreserveReferencesHandling.Objects; // should not let json decoder to read this line. - if (stream.PeekLine().Contains("// karaoke json file format v")) + if (stream.PeekLine()?.Contains("// karaoke json file format v") ?? false) { stream.ReadLine(); }