Remove unnecessary use of and remove StartupStorage

This commit is contained in:
Salman Ahmed
2020-05-31 19:49:03 +03:00
parent 82fe99cf4a
commit 2c6887e610
3 changed files with 7 additions and 7 deletions

View File

@ -154,7 +154,7 @@ namespace osu.Game.Rulesets
{
try
{
var files = RuntimeInfo.StartupStorage.GetFiles($"{ruleset_library_prefix}.*.dll");
var files = Directory.GetFiles(Path.Combine(RuntimeInfo.StartupDirectory, $"{ruleset_library_prefix}.*.dll"));
foreach (string file in files.Where(f => !Path.GetFileName(f).Contains("Tests")))
loadRulesetFromFile(file);