Expression body and spacing.

This commit is contained in:
Huo Yaoyuan
2016-11-16 10:53:10 +08:00
parent 53deaf2a00
commit 95600f872d
2 changed files with 2 additions and 4 deletions

View File

@ -14,10 +14,7 @@ namespace osu.Desktop.Beatmaps.IO
/// </summary> /// </summary>
public class LegacyFilesystemReader : ArchiveReader public class LegacyFilesystemReader : ArchiveReader
{ {
public static void Register() public static void Register() => AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
{
AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
}
private string basePath { get; set; } private string basePath { get; set; }
private string[] beatmaps { get; set; } private string[] beatmaps { get; set; }

View File

@ -25,6 +25,7 @@ namespace osu.Desktop
public static int Main(string[] args) public static int Main(string[] args)
{ {
LegacyFilesystemReader.Register(); LegacyFilesystemReader.Register();
using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true)) using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true))
{ {
if (!host.IsPrimaryInstance) if (!host.IsPrimaryInstance)