diff --git a/osu.Game.Rulesets.Karaoke.Tests/KaraokeTestBrowser.cs b/osu.Game.Rulesets.Karaoke.Tests/KaraokeTestBrowser.cs index 350fc3eb2..5de3056d8 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/KaraokeTestBrowser.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/KaraokeTestBrowser.cs @@ -13,7 +13,7 @@ public class KaraokeTestBrowser : OsuTestBrowser private void load() { // add shader resource from font package. - Resources.AddStore(new NamespacedResourceStore(new FontResourceStore(), "Resources")); + Resources.AddStore(new NamespacedResourceStore(new ShaderResourceStore(), "Resources")); } } } diff --git a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Rows/Components/EditorLyricPiece.cs b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Rows/Components/EditorLyricPiece.cs index 6d9950e06..14a1a7272 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Rows/Components/EditorLyricPiece.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Rows/Components/EditorLyricPiece.cs @@ -166,7 +166,7 @@ public RectangleF GetRubyTagPosition(RubyTag rubyTag) var startCharacterIndex = Text.Length + skinIndex(Rubies, rubyIndex); var count = matchedRuby.Text.Length; - var rectangles = Characters.GetRange(startCharacterIndex, count).Select(x => x.DrawRectangle).ToArray(); + var rectangles = Characters.ToList().GetRange(startCharacterIndex, count).Select(x => x.DrawRectangle).ToArray(); return RectangleFUtils.Union(rectangles); } @@ -179,7 +179,7 @@ public RectangleF GetRomajiTagPosition(RomajiTag romajiTag) var startCharacterIndex = Text.Length + skinIndex(Rubies, Rubies.Length) + skinIndex(Romajies, romajiIndex); var count = matchedRomaji.Text.Length; - var rectangles = Characters.GetRange(startCharacterIndex, count).Select(x => x.DrawRectangle).ToArray(); + var rectangles = Characters.ToList().GetRange(startCharacterIndex, count).Select(x => x.DrawRectangle).ToArray(); return RectangleFUtils.Union(rectangles); } diff --git a/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs b/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs index 32d23c7d4..a45112296 100644 --- a/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs +++ b/osu.Game.Rulesets.Karaoke/KaraokeRuleset.cs @@ -169,7 +169,7 @@ public override IResourceStore CreateResourceStore() store.AddStore(getRulesetStore()); // add shader resource from font package. - store.AddStore(new NamespacedResourceStore(new FontResourceStore(), "Resources")); + store.AddStore(new NamespacedResourceStore(new ShaderResourceStore(), "Resources")); return store; diff --git a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj index 623dcdc52..84140e2d1 100644 --- a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj +++ b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj @@ -10,7 +10,7 @@ - +