mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Start implementing legacy decoder
This commit is contained in:
committed by
Dean Herbert
parent
c9a057b510
commit
2a3f047895
@ -6,9 +6,9 @@ using osu.Game.Beatmaps.Formats;
|
||||
|
||||
namespace osu.Game.Beatmaps.IO
|
||||
{
|
||||
public class OszArchiveReader : ArchiveReader
|
||||
public sealed class OszArchiveReader : ArchiveReader
|
||||
{
|
||||
static OszArchiveReader()
|
||||
public static void Register()
|
||||
{
|
||||
AddReader<OszArchiveReader>((storage, path) =>
|
||||
{
|
||||
@ -20,6 +20,7 @@ namespace osu.Game.Beatmaps.IO
|
||||
return zip.Entries.Any(e => e.FileName.EndsWith(".osu"));
|
||||
}
|
||||
});
|
||||
OsuLegacyDecoder.Register();
|
||||
}
|
||||
|
||||
private ZipFile Archive { get; set; }
|
||||
|
Reference in New Issue
Block a user