From 4919fc51828964963368d80862e84c689daf9033 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 23 May 2017 13:04:28 -0500 Subject: [PATCH] don't reference GlobalWin.LuaConsole in LuaConsole! --- BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index 55c0e5a061..f15dbe9acf 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -761,7 +761,7 @@ namespace BizHawk.Client.EmuHawk SelectAllMenuItem.Enabled = LuaImp.ScriptList.Any(); StopAllScriptsMenuItem.Enabled = LuaImp.ScriptList.Any(script => script.Enabled); - RegisteredFunctionsMenuItem.Enabled = GlobalWin.Tools.LuaConsole.LuaImp.RegisteredFunctions.Any(); + RegisteredFunctionsMenuItem.Enabled = LuaImp.RegisteredFunctions.Any(); } private void NewScriptMenuItem_Click(object sender, EventArgs e) @@ -862,7 +862,7 @@ namespace BizHawk.Client.EmuHawk item.Stop(); if (Global.Config.RemoveRegisteredFunctionsOnToggle) { - GlobalWin.Tools.LuaConsole.LuaImp.RegisteredFunctions.ClearAll(); + LuaImp.RegisteredFunctions.ClearAll(); } } }