Import beatmaps into the database via IPC

This commit is contained in:
Drew DeVault
2016-10-11 10:53:16 -04:00
committed by Dean Herbert
parent 3a163de0f7
commit 45c0bc5428
4 changed files with 24 additions and 9 deletions

View File

@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps.IO
foreach (var reader in readers)
{
if (reader.Test(storage, path))
return (ArchiveReader)Activator.CreateInstance(reader.Type);
return (ArchiveReader)Activator.CreateInstance(reader.Type, storage.GetStream(path));
}
throw new IOException("Unknown file format");
}