From 62f6f3b471f540d52d0da87cf035facc679583a0 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 7 Dec 2022 14:27:19 +1000 Subject: [PATCH] Fix Win32LuaLibraries init'ing incorrectly on `DeveloperBuild = false` --- src/BizHawk.Client.EmuHawk/tools/Lua/Win32LuaLibraries.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/Win32LuaLibraries.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/Win32LuaLibraries.cs index f900f55b5f..5e8382dbae 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/Win32LuaLibraries.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/Win32LuaLibraries.cs @@ -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(inherit: false)?.Released == true) + if (VersionInfo.DeveloperBuild + || lib.GetCustomAttribute(inherit: false)?.Released is not false) { var instance = (LuaLibraryBase)Activator.CreateInstance(lib, this, _apiContainer, (Action)LogToLuaConsole); ServiceInjector.UpdateServices(serviceProvider, instance);