diff --git a/osu.Desktop/Beatmaps/IO/LegacyFilesystemReader.cs b/osu.Desktop/Beatmaps/IO/LegacyFilesystemReader.cs index 3d0869f54d..12afbddcc1 100644 --- a/osu.Desktop/Beatmaps/IO/LegacyFilesystemReader.cs +++ b/osu.Desktop/Beatmaps/IO/LegacyFilesystemReader.cs @@ -14,10 +14,7 @@ namespace osu.Desktop.Beatmaps.IO /// public class LegacyFilesystemReader : ArchiveReader { - public static void Register() - { - AddReader((storage, path) => Directory.Exists(path)); - } + public static void Register() => AddReader((storage, path) => Directory.Exists(path)); private string basePath { get; set; } private string[] beatmaps { get; set; } diff --git a/osu.Desktop/Program.cs b/osu.Desktop/Program.cs index 5c1d5374e4..d51f898870 100644 --- a/osu.Desktop/Program.cs +++ b/osu.Desktop/Program.cs @@ -25,6 +25,7 @@ public static class Program public static int Main(string[] args) { LegacyFilesystemReader.Register(); + using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true)) { if (!host.IsPrimaryInstance)