mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Remove non-Live
pathway
This commit is contained in:
parent
e75ff33d62
commit
0d095c4bb7
@ -400,7 +400,7 @@ namespace osu.Game.Beatmaps
|
||||
public Task<Live<BeatmapSetInfo>?> ImportAsUpdate(ProgressNotification notification, ImportTask importTask, BeatmapSetInfo original) =>
|
||||
beatmapImporter.ImportAsUpdate(notification, importTask, original);
|
||||
|
||||
public Task Export(BeatmapSetInfo beatmap) => beatmapExporter.ExportAsync(beatmap, Realm);
|
||||
public Task Export(BeatmapSetInfo beatmap) => beatmapExporter.ExportAsync(beatmap.ToLive(Realm));
|
||||
|
||||
private void updateHashAndMarkDirty(BeatmapSetInfo setInfo)
|
||||
{
|
||||
|
@ -51,19 +51,6 @@ namespace osu.Game.Database
|
||||
UserFileStorage = storage.GetStorageForDirectory(@"files");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Export the model to default folder.
|
||||
/// </summary>
|
||||
/// <param name="model">The model should export.</param>
|
||||
/// <param name="realm">Realm that convert model to Live.</param>
|
||||
/// <param name="cancellationToken">
|
||||
/// The Cancellation token that can cancel the exporting.
|
||||
/// If specified CancellationToken, then use it. Otherwise use PostNotification's CancellationToken.
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
public Task ExportAsync(TModel model, RealmAccess realm, CancellationToken cancellationToken = default) =>
|
||||
ExportAsync(model.ToLive(realm), cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Export the model to default folder.
|
||||
/// </summary>
|
||||
|
@ -193,7 +193,7 @@ namespace osu.Game.Scoring
|
||||
|
||||
public Task<IEnumerable<Live<ScoreInfo>>> Import(ProgressNotification notification, ImportTask[] tasks, ImportParameters parameters = default) => scoreImporter.Import(notification, tasks);
|
||||
|
||||
public Task Export(ScoreInfo score) => scoreExporter.ExportAsync(score, Realm);
|
||||
public Task Export(ScoreInfo score) => scoreExporter.ExportAsync(score.ToLive(Realm));
|
||||
|
||||
public Task<Live<ScoreInfo>> ImportAsUpdate(ProgressNotification notification, ImportTask task, ScoreInfo original) => scoreImporter.ImportAsUpdate(notification, task, original);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user