Inline LuaLibraries.RunningScripts

This commit is contained in:
YoshiRulz 2020-12-05 07:01:04 +10:00
parent c3c02eaad3
commit bf116f3ecf
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ namespace BizHawk.Client.Common
public abstract LuaFunctionList RegisteredFunctions { get; }
public abstract GuiLuaLibrary GuiLibrary { get; }
protected readonly Dictionary<Type, LuaLibraryBase> Libraries = new Dictionary<Type, LuaLibraryBase>();
public IEnumerable<LuaFile> 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

View File

@ -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)
{