Use StableStorage in ArchiveModelManager.

This commit is contained in:
Lucas A
2021-01-24 19:46:10 +01:00
parent 9a5790cd31
commit d71ac83428
4 changed files with 7 additions and 5 deletions

View File

@ -16,6 +16,7 @@ using osu.Framework.Platform;
using osu.Game.Beatmaps;
using osu.Game.Configuration;
using osu.Game.Database;
using osu.Game.IO;
using osu.Game.IO.Archives;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
@ -71,7 +72,7 @@ namespace osu.Game.Scoring
}
}
protected override IEnumerable<string> GetStableImportPaths(Storage stableStorage)
protected override IEnumerable<string> GetStableImportPaths(StableStorage stableStorage)
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.OrdinalIgnoreCase) ?? false));
public Score GetScore(ScoreInfo score) => new LegacyDatabasedScore(score, rulesets, beatmaps(), Files.Store);