mirror of
https://github.com/ppy/osu
synced 2025-01-04 13:22:08 +00:00
Remove unnecessary skin reading hack in DefaultLegacySkin
This commit is contained in:
parent
6c405f1dee
commit
9d3c6ade62
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user