Provide a realm factory to usages of ToLive/RealmLive

This commit is contained in:
Dean Herbert
2021-12-14 14:21:23 +09:00
parent f9a2db5ec6
commit 441b7baa93
11 changed files with 67 additions and 44 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Skinning
protected Skin(SkinInfo skin, IStorageResourceProvider resources, [CanBeNull] Stream configurationStream = null)
{
SkinInfo = skin.ToLive();
SkinInfo = skin.ToLive(resources.RealmContextFactory);
this.resources = resources;
configurationStream ??= getConfigurationStream();