From 7c7ac64ae6182a17bedf0745d7f2b037e0e04595 Mon Sep 17 00:00:00 2001
From: kalimag <kalimag@users.noreply.github.com>
Date: Sun, 27 Nov 2022 19:54:03 +0100
Subject: [PATCH] Stop discarding Lua session save directory

Previously any path would into ".\foo.luases" and be saved in exe dir
---
 src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs
index 2bc548457a..d5966b045c 100644
--- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs
+++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs
@@ -687,13 +687,9 @@ namespace BizHawk.Client.EmuHawk
 			var file = GetSaveFileFromUser();
 			if (file != null)
 			{
-				var path = Config.PathEntries
-					.AbsolutePathFor(file.FullName, "")
-					.MakeRelativeTo(Path.GetDirectoryName(file.FullName));
-				LuaImp.ScriptList.Save(path);
-
-				Config.RecentLuaSession.Add(file.FullName); // TODO: should path be used here?
-				OutputMessages.Text = $"{Path.GetFileName(LuaImp.ScriptList.Filename)} saved.";
+				LuaImp.ScriptList.Save(file.FullName);
+				Config.RecentLuaSession.Add(file.FullName);
+				OutputMessages.Text = $"{file.Name} saved.";
 			}
 		}