mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 22:16:10 +08: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)
|
public DefaultLegacySkin(SkinInfo skin, IStorageResourceProvider resources)
|
||||||
: base(
|
: base(
|
||||||
skin,
|
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,
|
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.
|
"skin.ini"
|
||||||
// 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")
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Configuration.CustomColours["SliderBall"] = new Color4(2, 170, 255, 255);
|
Configuration.CustomColours["SliderBall"] = new Color4(2, 170, 255, 255);
|
||||||
|
Loading…
Reference in New Issue
Block a user