From 67704b35bf95f5600e216b65b2f2531cb4d565e9 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 22 Apr 2014 21:35:04 +0000 Subject: [PATCH] Lua Console - dont' flag changes when change the on/off status of a script as that leads to being nagged too much (for instance, toggling a lua script at any time during recording and then restarting your movie). Remember the file name when creating a new session as to do a Save As during AskSave() --- BizHawk.Client.Common/lua/LuaFileList.cs | 1 + BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/lua/LuaFileList.cs b/BizHawk.Client.Common/lua/LuaFileList.cs index b608e88a40..e7e26fd447 100644 --- a/BizHawk.Client.Common/lua/LuaFileList.cs +++ b/BizHawk.Client.Common/lua/LuaFileList.cs @@ -145,6 +145,7 @@ namespace BizHawk.Client.Common sw.Write(sb.ToString()); } + Filename = path; Global.Config.RecentLuaSession.Add(path); Changes = false; } diff --git a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index e282f27a55..60f1a7562c 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -193,7 +193,6 @@ namespace BizHawk.Client.EmuHawk else { file.Stop(); - _luaList.Changes = true; } } } @@ -724,7 +723,6 @@ namespace BizHawk.Client.EmuHawk } } - _luaList.Changes = true; UpdateDialog(); }