mirror of
https://github.com/ppy/osu.git
synced 2025-03-03 13:33:07 +08:00
Merge pull request #28380 from peppy/ruleset-store-unavailable-but-why
Fix `AssemblyRulesetStore` not marking rulesets as available
This commit is contained in:
commit
8296e6318a
@ -43,7 +43,12 @@ namespace osu.Game.Rulesets
|
|||||||
|
|
||||||
// add all legacy rulesets first to ensure they have exclusive choice of primary key.
|
// add all legacy rulesets first to ensure they have exclusive choice of primary key.
|
||||||
foreach (var r in instances.Where(r => r is ILegacyRuleset))
|
foreach (var r in instances.Where(r => r is ILegacyRuleset))
|
||||||
availableRulesets.Add(new RulesetInfo(r.RulesetInfo.ShortName, r.RulesetInfo.Name, r.RulesetInfo.InstantiationInfo, r.RulesetInfo.OnlineID));
|
{
|
||||||
|
availableRulesets.Add(new RulesetInfo(r.RulesetInfo.ShortName, r.RulesetInfo.Name, r.RulesetInfo.InstantiationInfo, r.RulesetInfo.OnlineID)
|
||||||
|
{
|
||||||
|
Available = true
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user