mirror of https://github.com/ppy/osu
ExportToStream should be public
This commit is contained in:
parent
747f912af5
commit
4393e53b43
|
@ -115,7 +115,7 @@ public TestLegacyModelExporter(Storage storage)
|
|||
|
||||
public string GetExtension() => FileExtension;
|
||||
|
||||
protected override void ExportToStream(TestModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||
public override void ExportToStream(TestModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ protected LegacyArchiveExporter(Storage storage)
|
|||
{
|
||||
}
|
||||
|
||||
protected override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||
public override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||
=> exportZipArchive(model, outputStream, notification, cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -140,6 +140,6 @@ public Task ExportToStreamAsync(Live<TModel> model, Stream stream, ProgressNotif
|
|||
/// <param name="outputStream">The output stream to export to.</param>
|
||||
/// <param name="notification">The notification will displayed to the user</param>
|
||||
/// <param name="cancellationToken">The Cancellation token that can cancel the exporting.</param>
|
||||
protected abstract void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default);
|
||||
public abstract void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ protected override string GetFilename(ScoreInfo score)
|
|||
|
||||
protected override string FileExtension => ".osr";
|
||||
|
||||
protected override void ExportToStream(ScoreInfo model, Stream stream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||
public override void ExportToStream(ScoreInfo model, Stream stream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||
{
|
||||
var file = model.Files.SingleOrDefault();
|
||||
if (file == null)
|
||||
|
|
Loading…
Reference in New Issue