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

@ -64,7 +64,13 @@ namespace osu.Game.Beatmaps
protected override string[] HashableFileTypes => new[] { ".osu" };
protected override string ImportFromStablePath => "Songs";
protected override bool CheckStableDirectoryExists(StableStorage stableStorage) => stableStorage.GetSongStorage().ExistsDirectory(".");
protected override IEnumerable<string> GetStableImportPaths(StableStorage stableStoage)
{
var songStorage = stableStoage.GetSongStorage();
return songStorage.GetDirectories(".").Select(path => songStorage.GetFullPath(path));
}
private readonly RulesetStore rulesets;
private readonly BeatmapStore beatmaps;