Skip to content

Commit

Permalink
get resource store from karaoke ruleset because it might be more easier.
Browse files Browse the repository at this point in the history
also utils seems not working.
  • Loading branch information
andy840119 committed Feb 5, 2022
1 parent 23a99e3 commit bf78415
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using osu.Game.Database;
using osu.Game.IO;
using osu.Game.Rulesets.Karaoke.UI.HUD;
using osu.Game.Rulesets.Karaoke.Utils;
using osu.Game.Rulesets.Scoring;
using osu.Game.Skinning;

Expand Down Expand Up @@ -106,8 +105,8 @@ private class InternalSkinStorageResourceProvider : IStorageResourceProvider
{
public InternalSkinStorageResourceProvider(string skinName)
{
var assembly = AssemblyUtils.GetAssemblyByName("osu.Game.Rulesets.Karaoke");
Files = Resources = new NamespacedResourceStore<byte[]>(new DllResourceStore(assembly), $"Resources/Skin/{skinName}");
var store = new KaraokeRuleset().CreateResourceStore();
Files = Resources = new NamespacedResourceStore<byte[]>(store, $"Skin/{skinName}");
}

public IResourceStore<TextureUpload> CreateTextureLoaderStore(IResourceStore<byte[]> underlyingStore)
Expand Down

0 comments on commit bf78415

Please sign in to comment.