Fix Win32LuaLibraries init'ing incorrectly on `DeveloperBuild = false`
This commit is contained in:
parent
b04260bee7
commit
62f6f3b471
|
@ -75,7 +75,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
foreach (var lib in Client.Common.ReflectionCache.Types.Concat(EmuHawk.ReflectionCache.Types)
|
||||
.Where(t => typeof(LuaLibraryBase).IsAssignableFrom(t) && t.IsSealed && ServiceInjector.IsAvailable(serviceProvider, t)))
|
||||
{
|
||||
if (VersionInfo.DeveloperBuild || lib.GetCustomAttribute<LuaLibraryAttribute>(inherit: false)?.Released == true)
|
||||
if (VersionInfo.DeveloperBuild
|
||||
|| lib.GetCustomAttribute<LuaLibraryAttribute>(inherit: false)?.Released is not false)
|
||||
{
|
||||
var instance = (LuaLibraryBase)Activator.CreateInstance(lib, this, _apiContainer, (Action<string>)LogToLuaConsole);
|
||||
ServiceInjector.UpdateServices(serviceProvider, instance);
|
||||
|
|
Loading…
Reference in New Issue