diff --git a/src/BizHawk.Client.Common/Api/ApiInjector.cs b/src/BizHawk.Client.Common/Api/ApiInjector.cs index 0898d6f8da..72727eae25 100644 --- a/src/BizHawk.Client.Common/Api/ApiInjector.cs +++ b/src/BizHawk.Client.Common/Api/ApiInjector.cs @@ -35,6 +35,9 @@ namespace BizHawk.Client.Common Type targetType = target.GetType(); object[] tmp = new object[1]; + targetType.GetProperties().FirstOrDefault(pi => pi.PropertyType == typeof(ApiContainer)) + ?.SetValue(target, source.Container); + foreach (var propinfo in targetType.GetPropertiesWithAttrib(typeof(RequiredApiAttribute))) { tmp[0] = source.GetApi(propinfo.PropertyType);