Replace Add/Reset methods with single Set method

This commit is contained in:
Dean Herbert
2021-10-12 11:55:04 +09:00
parent df83f0db08
commit 39a3482458
3 changed files with 14 additions and 24 deletions

View File

@ -60,8 +60,6 @@ namespace osu.Game.Skinning
protected override void OnSourceChanged()
{
ResetSources();
// Populate a local list first so we can adjust the returned order as we go.
var sources = new List<ISkin>();
@ -91,8 +89,7 @@ namespace osu.Game.Skinning
else
sources.Add(rulesetResourcesSkin);
foreach (var skin in sources)
AddSource(skin);
SetSources(sources);
}
protected ISkin GetLegacyRulesetTransformedSkin(ISkin legacySkin)