Rename to LegacyDirectoryArchiveReader

This commit is contained in:
smoogipoo 2018-11-28 15:13:27 +09:00
parent dc31736db7
commit 0982508d26
2 changed files with 4 additions and 4 deletions

View File

@ -485,7 +485,7 @@ private ArchiveReader getReaderFrom(string path)
if (ZipUtils.IsZipArchive(path))
return new ZipArchiveReader(File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read), Path.GetFileName(path));
if (Directory.Exists(path))
return new LegacyFilesystemReader(path);
return new LegacyDirectoryArchiveReader(path);
throw new InvalidFormatException($"{path} is not a valid archive");
}
}

View File

@ -8,13 +8,13 @@
namespace osu.Game.IO.Archives
{
/// <summary>
/// Reads an extracted legacy beatmap from disk.
/// Reads an archive from a directory on disk.
/// </summary>
public class LegacyFilesystemReader : ArchiveReader
public class LegacyDirectoryArchiveReader : ArchiveReader
{
private readonly string path;
public LegacyFilesystemReader(string path)
public LegacyDirectoryArchiveReader(string path)
: base(Path.GetFileName(path))
{
// re-get full path to standardise with Directory.GetFiles return values below.