Revert most of the changes to ArchiveModeManager by using better code

This commit is contained in:
Dean Herbert
2021-02-12 12:48:32 +09:00
parent f0dfa9f8f3
commit 5f23bd7259
3 changed files with 20 additions and 21 deletions

View File

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