1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Remove unnecessary skin reading hack in DefaultLegacySkin

This commit is contained in:
Dean Herbert 2022-03-23 14:38:40 +09:00
parent 6c405f1dee
commit 9d3c6ade62

View File

@ -30,11 +30,10 @@ namespace osu.Game.Skinning
public DefaultLegacySkin(SkinInfo skin, IStorageResourceProvider resources)
: base(
skin,
// In the case of the actual default legacy skin (ie. the fallback one, which a user hasn't applied any modifications to) we want to use the game provided resources.
skin.Protected ? new NamespacedResourceStore<byte[]>(resources.Resources, "Skins/Legacy") : null,
resources,
// 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.
new RealmBackedResourceStore(skin, resources.Files).GetStream("skin.ini")
"skin.ini"
)
{
Configuration.CustomColours["SliderBall"] = new Color4(2, 170, 255, 255);