From c8384a5832cc845398d06bd67b4025d497be375e Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 29 Apr 2023 22:09:58 +0800 Subject: [PATCH] Custom ruleset should handle every skin because we should get the config in the skin transformer. --- osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs b/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs index cc8f2739a..bb5e0d0aa 100644 --- a/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs +++ b/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs @@ -198,7 +198,7 @@ public override IResourceStore CreateResourceStore() public override string PlayingVerb => "Singing karaoke"; - public override ISkin? CreateSkinTransformer(ISkin skin, IBeatmap beatmap) + public override ISkin CreateSkinTransformer(ISkin skin, IBeatmap beatmap) { return skin switch { @@ -206,7 +206,7 @@ public override IResourceStore CreateResourceStore() ArgonSkin => new KaraokeArgonSkinTransformer(skin, beatmap), DefaultLegacySkin => new KaraokeClassicSkinTransformer(skin, beatmap), LegacySkin => new KaraokeLegacySkinTransformer(skin, beatmap), - _ => null + _ => throw new InvalidOperationException(), }; }