Fix ArchiveModelManagers lookup paths.

This commit is contained in:
Lucas A
2021-01-24 22:25:49 +01:00
parent f0fdad2f83
commit 51d4da565c
3 changed files with 18 additions and 5 deletions

View File

@ -73,7 +73,8 @@ namespace osu.Game.Scoring
}
protected override IEnumerable<string> GetStableImportPaths(StableStorage stableStorage)
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.OrdinalIgnoreCase) ?? false));
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.OrdinalIgnoreCase) ?? false))
.Select(path => stableStorage.GetFullPath(path));
public Score GetScore(ScoreInfo score) => new LegacyDatabasedScore(score, rulesets, beatmaps(), Files.Store);