1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Add ruleset resources skin before SkinManager.DefaultSkin

This commit is contained in:
Salman Ahmed 2021-06-23 10:09:25 +03:00
parent 2e6800f586
commit 53fa229880

View File

@ -50,6 +50,9 @@ namespace osu.Game.Skinning
[Resolved]
private AudioManager audio { get; set; }
[Resolved]
private SkinManager skinManager { get; set; }
[Resolved]
private ISkinSource skinSource { get; set; }
@ -84,7 +87,7 @@ namespace osu.Game.Skinning
}
}
SkinSources.Add(new RulesetResourcesSkin(Ruleset, host, audio));
SkinSources.Insert(SkinSources.IndexOf(skinManager.DefaultSkin), new RulesetResourcesSkin(Ruleset, host, audio));
}
protected ISkin GetLegacyRulesetTransformedSkin(ISkin legacySkin)