mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix visual test crashes due to local realm not having update thread
This commit is contained in:
@ -115,11 +115,13 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||
{
|
||||
headlessHostStorage = (parent.Get<GameHost>() as HeadlessGameHost)?.Storage;
|
||||
var host = parent.Get<GameHost>();
|
||||
|
||||
headlessHostStorage = (host as HeadlessGameHost)?.Storage;
|
||||
|
||||
Resources = parent.Get<OsuGameBase>().Resources;
|
||||
|
||||
realm = new Lazy<RealmAccess>(() => new RealmAccess(LocalStorage, "client"));
|
||||
realm = new Lazy<RealmAccess>(() => new RealmAccess(LocalStorage, "client", host.UpdateThread));
|
||||
|
||||
RecycleLocalStorage(false);
|
||||
|
||||
|
Reference in New Issue
Block a user