From b82e19f23024b87c20979a324b6a746784c44e24 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 3 Mar 2015 01:19:38 +0000 Subject: [PATCH] Lua - fix a relative path bug when saving a lua session --- BizHawk.Client.Common/lua/LuaFileList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.Common/lua/LuaFileList.cs b/BizHawk.Client.Common/lua/LuaFileList.cs index 12bc4f59d0..f246be5858 100644 --- a/BizHawk.Client.Common/lua/LuaFileList.cs +++ b/BizHawk.Client.Common/lua/LuaFileList.cs @@ -145,7 +145,7 @@ namespace BizHawk.Client.Common sb .Append(file.Enabled ? "1" : "0") .Append(' ') - .Append(PathManager.MakeRelativeTo(file.Path, Path.GetDirectoryName(path))) + .Append(PathManager.MakeRelativeTo(PathManager.MakeAbsolutePath(file.Path, ""), Path.GetDirectoryName(path))) .AppendLine(); }