mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
Don't search for user rulesets if rulesetsStorage isn't set (Testing environnment)
This commit is contained in:
parent
08308e07e7
commit
2087d8d09e
@ -138,10 +138,12 @@ namespace osu.Game.Rulesets
|
||||
|
||||
private void loadUserRulesets()
|
||||
{
|
||||
var rulesets = rulesetStorage?.GetFiles(".", $"{ruleset_library_prefix}.*.dll");
|
||||
if (rulesetStorage == null) return;
|
||||
|
||||
var rulesets = rulesetStorage.GetFiles(".", $"{ruleset_library_prefix}.*.dll");
|
||||
|
||||
foreach (var ruleset in rulesets.Where(f => !f.Contains("Tests")))
|
||||
loadRulesetFromFile(rulesetStorage?.GetFullPath(ruleset));
|
||||
loadRulesetFromFile(rulesetStorage.GetFullPath(ruleset));
|
||||
}
|
||||
|
||||
private void loadFromDisk()
|
||||
|
Loading…
Reference in New Issue
Block a user