Skip to content

Commit

Permalink
Custom ruleset should handle every skin because we should get the con…
Browse files Browse the repository at this point in the history
…fig in the skin transformer.
  • Loading branch information
andy840119 committed Apr 29, 2023
1 parent 77a5b4d commit c8384a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ public override IResourceStore<byte[]> 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
{
TrianglesSkin => new KaraokeTrianglesSkinTransformer(skin, beatmap),
ArgonSkin => new KaraokeArgonSkinTransformer(skin, beatmap),
DefaultLegacySkin => new KaraokeClassicSkinTransformer(skin, beatmap),
LegacySkin => new KaraokeLegacySkinTransformer(skin, beatmap),
_ => null
_ => throw new InvalidOperationException(),
};
}

Expand Down

0 comments on commit c8384a5

Please sign in to comment.