Clean up stable lookup and mutate logic

This commit is contained in:
Dean Herbert
2019-07-05 13:59:31 +09:00
parent 8346c50ce1
commit ba8df3ba92
3 changed files with 5 additions and 8 deletions

View File

@ -56,9 +56,8 @@ namespace osu.Game.Scoring
}
}
protected override IEnumerable<string> GetStableImportPaths()
=> GetStableStorage().GetFiles(ImportFromStablePath)
.Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.InvariantCultureIgnoreCase) ?? false));
protected override IEnumerable<string> GetStableImportPaths(Storage stableStorage)
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.InvariantCultureIgnoreCase) ?? false));
public Score GetScore(ScoreInfo score) => new LegacyDatabasedScore(score, rulesets, beatmaps(), Files.Store);