From bf78415f20c9baace54a3f4d9dd8b938e0a714a0 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 5 Feb 2022 21:58:05 +0800 Subject: [PATCH] get resource store from karaoke ruleset because it might be more easier. also utils seems not working. --- .../Skinning/Legacy/KaraokeLegacySkinTransformer.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/Skinning/Legacy/KaraokeLegacySkinTransformer.cs b/osu.Game.Rulesets.Karaoke/Skinning/Legacy/KaraokeLegacySkinTransformer.cs index ceed171c3..aa9fb310a 100644 --- a/osu.Game.Rulesets.Karaoke/Skinning/Legacy/KaraokeLegacySkinTransformer.cs +++ b/osu.Game.Rulesets.Karaoke/Skinning/Legacy/KaraokeLegacySkinTransformer.cs @@ -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; @@ -106,8 +105,8 @@ private class InternalSkinStorageResourceProvider : IStorageResourceProvider { public InternalSkinStorageResourceProvider(string skinName) { - var assembly = AssemblyUtils.GetAssemblyByName("osu.Game.Rulesets.Karaoke"); - Files = Resources = new NamespacedResourceStore(new DllResourceStore(assembly), $"Resources/Skin/{skinName}"); + var store = new KaraokeRuleset().CreateResourceStore(); + Files = Resources = new NamespacedResourceStore(store, $"Skin/{skinName}"); } public IResourceStore CreateTextureLoaderStore(IResourceStore underlyingStore)