mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 13:25:35 +08:00
Rename outputStream
variable to match base class
This commit is contained in:
parent
d2591368a6
commit
64d7e0d896
@ -28,14 +28,14 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
protected override string FileExtension => ".osr";
|
protected override string FileExtension => ".osr";
|
||||||
|
|
||||||
public override void ExportToStream(ScoreInfo model, Stream stream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
public override void ExportToStream(ScoreInfo model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
var file = model.Files.SingleOrDefault();
|
var file = model.Files.SingleOrDefault();
|
||||||
if (file == null)
|
if (file == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
using (var inputStream = UserFileStorage.GetStream(file.File.GetStoragePath()))
|
using (var inputStream = UserFileStorage.GetStream(file.File.GetStoragePath()))
|
||||||
inputStream.CopyTo(stream);
|
inputStream.CopyTo(outputStream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user