Only use legacy resources lookup for protected (aka default) skin

This commit is contained in:
Dean Herbert 2022-03-23 13:46:19 +09:00
parent 3c38b14228
commit 00aea9bef0

View File

@ -30,7 +30,7 @@ namespace osu.Game.Skinning
public DefaultLegacySkin(SkinInfo skin, IStorageResourceProvider resources) public DefaultLegacySkin(SkinInfo skin, IStorageResourceProvider resources)
: base( : base(
skin, skin,
new NamespacedResourceStore<byte[]>(resources.Resources, "Skins/Legacy"), skin.Protected ? new NamespacedResourceStore<byte[]>(resources.Resources, "Skins/Legacy") : null,
resources, resources,
// A default legacy skin may still have a skin.ini if it is modified by the user. // A default legacy skin may still have a skin.ini if it is modified by the user.
// We must specify the stream directly as we are redirecting storage to the osu-resources location for other files. // We must specify the stream directly as we are redirecting storage to the osu-resources location for other files.