mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Move host lookup to inside lazy retrieval to handle edge cases
This commit is contained in:
parent
234152b2fe
commit
879979ef57
@ -132,9 +132,8 @@ namespace osu.Game.Tests.Visual
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
localStorage = host is HeadlessGameHost
|
localStorage =
|
||||||
? new Lazy<Storage>(() => host.Storage)
|
new Lazy<Storage>(() => host is HeadlessGameHost ? host.Storage : new NativeStorage(Path.Combine(RuntimeInfo.StartupDirectory, $"{GetType().Name}-{Guid.NewGuid()}")));
|
||||||
: new Lazy<Storage>(() => new NativeStorage(Path.Combine(RuntimeInfo.StartupDirectory, $"{GetType().Name}-{Guid.NewGuid()}")));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
|
Loading…
Reference in New Issue
Block a user