Fix invalid DI resolution of `RealmFileStore`

This commit is contained in:
Dean Herbert 2021-12-21 16:09:19 +09:00
parent 99e46cd26b
commit 167c399e8a
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Textures;
using osu.Framework.Platform;
using osu.Game.Database;
using osu.Game.Screens.Play;
using osu.Game.Stores;
@ -76,12 +77,12 @@ public DrawableStoryboard(Storyboard storyboard)
}
[BackgroundDependencyLoader(true)]
private void load(RealmFileStore fileStore, GameplayClock clock, CancellationToken? cancellationToken, GameHost host)
private void load(GameplayClock clock, CancellationToken? cancellationToken, GameHost host, RealmContextFactory realmContextFactory)
{
if (clock != null)
Clock = clock;
dependencies.Cache(new TextureStore(host.CreateTextureLoaderStore(fileStore.Store), false, scaleAdjust: 1));
dependencies.Cache(new TextureStore(host.CreateTextureLoaderStore(new RealmFileStore(realmContextFactory, host.Storage).Store), false, scaleAdjust: 1));
foreach (var layer in Storyboard.Layers)
{