Fix potential dependency-related issues

This commit is contained in:
smoogipoo
2020-04-14 23:10:14 +09:00
parent 64d44dedcd
commit 10486a0ad2

View File

@ -253,7 +253,7 @@ namespace osu.Game.Tests.Gameplay
};
// Need to refresh the cached skin source to refresh the skin resource store.
dependencies.SkinSource = new SkinProvidingContainer(new LegacySkin(userSkinInfo, userSkinResourceStore, dependencies.Get<AudioManager>()));
dependencies.SkinSource = new SkinProvidingContainer(new LegacySkin(userSkinInfo, userSkinResourceStore, Audio));
});
}
@ -287,7 +287,7 @@ namespace osu.Game.Tests.Gameplay
if (type == typeof(ISkinSource))
return SkinSource;
return fallback.Get(type);
return fallback.Get(type, info);
}
public void Inject<T>(T instance) where T : class