cctor->Register

This commit is contained in:
Huo Yaoyuan
2016-11-15 02:08:02 +08:00
parent dcd3ba0915
commit 97005e033c
2 changed files with 6 additions and 4 deletions

View File

@ -14,11 +14,11 @@ namespace osu.Desktop.Beatmaps.IO
/// </summary>
public class LegacyFilesystemReader : ArchiveReader
{
static LegacyFilesystemReader()
public static void Register()
{
AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
}
private string basePath { get; set; }
private string[] beatmaps { get; set; }
private Beatmap firstMap { get; set; }
@ -50,10 +50,10 @@ namespace osu.Desktop.Beatmaps.IO
{
return firstMap.BeatmapInfo.Metadata;
}
public override void Dispose()
{
// no-op
}
}
}
}