ApiManager should add APIs from Common

Without these, External Tools can't see most of the APIs
This commit is contained in:
Brian Armstrong 2019-12-09 01:40:09 -08:00 committed by James Groom
parent 373979395d
commit cfd6d7d83b
1 changed files with 8 additions and 1 deletions

View File

@ -29,7 +29,14 @@ namespace BizHawk.Client.EmuHawk
.GetTypes()
.Where(t => typeof(IExternalApi).IsAssignableFrom(t))
.Where(t => t.IsSealed)
.Where(t => ServiceInjector.IsAvailable(serviceProvider, t)));
.Where(t => ServiceInjector.IsAvailable(serviceProvider, t)))
.Concat(Assembly
.Load("BizHawk.Client.Common")
.GetTypes()
.Where(t => typeof(IExternalApi).IsAssignableFrom(t))
.Where(t => t.IsSealed)
.Where(t => ServiceInjector.IsAvailable(serviceProvider, t)));
foreach (var api in apis)
{