mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Group export methods into their respective managers
This commit is contained in:
@ -5,21 +5,21 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Game.Extensions;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Notifications;
|
||||
using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class LegacyScoreExporter : LegacyModelExporter<ScoreInfo>
|
||||
{
|
||||
public LegacyScoreExporter(Storage storage, RealmAccess realm, INotificationOverlay? notifications = null)
|
||||
: base(storage, realm, notifications)
|
||||
public LegacyScoreExporter(Storage storage, RealmAccess realm)
|
||||
: base(storage, realm)
|
||||
{
|
||||
}
|
||||
|
||||
protected override string FileExtension => ".osr";
|
||||
|
||||
protected override void ExportToStream(ScoreInfo model, Stream stream)
|
||||
protected override void ExportToStream(ScoreInfo model, Stream stream, ProgressNotification notification)
|
||||
{
|
||||
var file = model.Files.SingleOrDefault();
|
||||
if (file == null)
|
||||
|
Reference in New Issue
Block a user