1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00

ExportToStream should be public

This commit is contained in:
cdwcgt 2023-05-05 21:28:43 +09:00
parent 747f912af5
commit 4393e53b43
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
4 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ namespace osu.Game.Tests.Database
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)
{
}

View File

@ -27,7 +27,7 @@ namespace osu.Game.Database
{
}
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>

View File

@ -140,6 +140,6 @@ namespace osu.Game.Database
/// <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);
}
}

View File

@ -28,7 +28,7 @@ namespace osu.Game.Database
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)