Move responsibility for selecting paths to model managers

This commit is contained in:
HoLLy
2019-06-21 17:32:47 +02:00
parent f1f03dd541
commit 802da225d4
4 changed files with 16 additions and 20 deletions

View File

@ -62,8 +62,6 @@ namespace osu.Game.Beatmaps
protected override string ImportFromStablePath => "Songs";
protected override bool StableDirectoryBased => true;
private readonly RulesetStore rulesets;
private readonly BeatmapStore beatmaps;
@ -96,6 +94,8 @@ namespace osu.Game.Beatmaps
updateQueue = new BeatmapUpdateQueue(api);
}
protected override IEnumerable<string> GetStableImportPaths() => GetStableStorage().GetDirectories(ImportFromStablePath);
protected override Task Populate(BeatmapSetInfo beatmapSet, ArchiveReader archive, CancellationToken cancellationToken = default)
{
if (archive != null)