1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Add comment explaining insertion of ruleset skin before default skin

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Salman Ahmed 2021-06-28 09:38:42 +03:00 committed by GitHub
parent f598de4cdb
commit 779a1b322c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,9 @@ namespace osu.Game.Skinning
int defaultSkinIndex = SkinSources.IndexOf(skinManager.DefaultSkin);
// Ruleset resources should be given the ability to override game-wide defaults
// This is achieved by placing them before an instance of DefaultSkin.
// Note that DefaultSkin may not be present in some test scenes.
if (defaultSkinIndex >= 0)
SkinSources.Insert(defaultSkinIndex, rulesetResourcesSkin);
else