1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

Don't search for user rulesets if rulesetsStorage isn't set (Testing environnment)

This commit is contained in:
Lucas A 2020-04-07 16:01:47 +02:00
parent 08308e07e7
commit 2087d8d09e

View File

@ -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()