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

Fix migration logic overwriting existing components in ruleset targets

This commit is contained in:
Salman Ahmed 2024-06-25 05:54:56 +03:00
parent 78e0126f16
commit fc2202e0cc
2 changed files with 10 additions and 2 deletions

View File

@ -84,7 +84,11 @@ namespace osu.Game.Skinning
resources.RealmAccess.Run(r =>
{
foreach (var ruleset in r.All<RulesetInfo>())
hudLayout.Update(ruleset, comboCounters);
{
hudLayout.Update(ruleset, hudLayout.TryGetDrawableInfo(ruleset, out var rulesetComponents)
? rulesetComponents.Concat(comboCounters).ToArray()
: comboCounters);
}
});
}
}

View File

@ -71,7 +71,11 @@ namespace osu.Game.Skinning
resources.RealmAccess.Run(r =>
{
foreach (var ruleset in r.All<RulesetInfo>())
hudLayout.Update(ruleset, comboCounters);
{
hudLayout.Update(ruleset, hudLayout.TryGetDrawableInfo(ruleset, out var rulesetComponents)
? rulesetComponents.Concat(comboCounters).ToArray()
: comboCounters);
}
});
}
}