mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 19:32:55 +08:00
Update with framework-side storage changes
This commit is contained in:
parent
3fbb2b3f42
commit
ab15b6031d
@ -24,12 +24,12 @@ namespace osu.Game.IO
|
||||
"storage.ini"
|
||||
};
|
||||
|
||||
public OsuStorage(GameHost host)
|
||||
: base(host.Storage, string.Empty)
|
||||
public OsuStorage(GameHost host, Storage defaultStorage)
|
||||
: base(defaultStorage, string.Empty)
|
||||
{
|
||||
this.host = host;
|
||||
|
||||
storageConfig = new StorageConfigManager(host.Storage);
|
||||
storageConfig = new StorageConfigManager(defaultStorage);
|
||||
|
||||
var customStoragePath = storageConfig.Get<string>(StorageConfig.FullPath);
|
||||
|
||||
|
@ -312,11 +312,13 @@ namespace osu.Game
|
||||
base.SetHost(host);
|
||||
|
||||
// may be non-null for certain tests
|
||||
Storage ??= new OsuStorage(host);
|
||||
Storage ??= host.Storage;
|
||||
|
||||
LocalConfig ??= new OsuConfigManager(Storage);
|
||||
}
|
||||
|
||||
protected override Storage CreateStorage(GameHost host, Storage defaultStorage) => new OsuStorage(host, defaultStorage);
|
||||
|
||||
private readonly List<ICanAcceptFiles> fileImporters = new List<ICanAcceptFiles>();
|
||||
|
||||
public async Task Import(params string[] paths)
|
||||
|
Loading…
Reference in New Issue
Block a user