ApiManager should add APIs from Common
Without these, External Tools can't see most of the APIs
This commit is contained in:
parent
373979395d
commit
cfd6d7d83b
|
@ -29,8 +29,15 @@ namespace BizHawk.Client.EmuHawk
|
||||||
.GetTypes()
|
.GetTypes()
|
||||||
.Where(t => typeof(IExternalApi).IsAssignableFrom(t))
|
.Where(t => typeof(IExternalApi).IsAssignableFrom(t))
|
||||||
.Where(t => t.IsSealed)
|
.Where(t => t.IsSealed)
|
||||||
|
.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)));
|
.Where(t => ServiceInjector.IsAvailable(serviceProvider, t)));
|
||||||
|
|
||||||
|
|
||||||
foreach (var api in apis)
|
foreach (var api in apis)
|
||||||
{
|
{
|
||||||
var instance = (IExternalApi)Activator.CreateInstance(api);
|
var instance = (IExternalApi)Activator.CreateInstance(api);
|
||||||
|
|
Loading…
Reference in New Issue