Update BeatmapArchiveReader's test

This commit is contained in:
Alex Amadori
2017-03-08 21:55:38 +01:00
parent 1acd51cc90
commit 9f40a888ec
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.IO
AddReader<OszArchiveReader>((storage, path) =>
{
using (var stream = storage.GetStream(path))
return ZipFile.IsZipFile(stream, false);
return (Path.GetExtension(path) == ".osz") && ZipFile.IsZipFile(stream, false);
});
OsuLegacyDecoder.Register();
}