Skip to content

Commit

Permalink
Merge pull request ppy#28380 from peppy/ruleset-store-unavailable-but…
Browse files Browse the repository at this point in the history
…-why

Fix `AssemblyRulesetStore` not marking rulesets as available
  • Loading branch information
smoogipoo authored Jun 2, 2024
2 parents f1689d5 + 0911047 commit 8296e63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion osu.Game/Rulesets/AssemblyRulesetStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ public AssemblyRulesetStore(Storage? storage = null)

// add all legacy rulesets first to ensure they have exclusive choice of primary key.
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
});
}
}
}
}

0 comments on commit 8296e63

Please sign in to comment.