mirror of
https://github.com/ppy/osu
synced 2025-02-22 13:37:08 +00:00
Fix warnings
This commit is contained in:
parent
f969c3b7b3
commit
faecaa297a
@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps.IO
|
||||
catch (InvalidCastException e)
|
||||
{
|
||||
Logger.Error(e, "A tricky ArchiveReader instance passed the test to be a BeatmapArhiveReader, but it's really not");
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.IO
|
||||
AddReader<OszArchiveReader>((storage, path) =>
|
||||
{
|
||||
using (var stream = storage.GetStream(path))
|
||||
return (Path.GetExtension(path) == ".osz") && ZipFile.IsZipFile(stream, false);
|
||||
return Path.GetExtension(path) == ".osz" && ZipFile.IsZipFile(stream, false);
|
||||
});
|
||||
OsuLegacyDecoder.Register();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user