diff --git a/src/BizHawk.Client.Common/lua/LuaLibraries.cs b/src/BizHawk.Client.Common/lua/LuaLibraries.cs index 0c3e231698..673b9b66d4 100644 --- a/src/BizHawk.Client.Common/lua/LuaLibraries.cs +++ b/src/BizHawk.Client.Common/lua/LuaLibraries.cs @@ -18,7 +18,6 @@ namespace BizHawk.Client.Common public abstract LuaFunctionList RegisteredFunctions { get; } public abstract GuiLuaLibrary GuiLibrary { get; } protected readonly Dictionary Libraries = new Dictionary(); - public IEnumerable RunningScripts => ScriptList.Where(lf => lf.Enabled); public readonly LuaFileList ScriptList = new LuaFileList(); public bool IsRebootingCore { get; set; } // pretty hacky.. we don't want a lua script to be able to restart itself by rebooting the core diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index 911775686c..f2e49e7bcf 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -223,7 +223,7 @@ namespace BizHawk.Client.EmuHawk LuaImp.GuiLibrary.DrawFinish(); } - runningScripts = LuaImp.RunningScripts.ToList(); + runningScripts = LuaImp.ScriptList.Where(lf => lf.Enabled).ToList(); foreach (var file in runningScripts) {