We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df4df51 commit 01ab941Copy full SHA for 01ab941
src/BizHawk.Client.Common/lua/LuaFileList.cs
@@ -2,6 +2,7 @@
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Text;
5
+using BizHawk.Common.PathExtensions;
6
7
namespace BizHawk.Client.Common
8
{
@@ -107,6 +108,7 @@ public void Save(string path)
107
108
109
using var sw = new StreamWriter(path);
110
var sb = new StringBuilder();
111
+ var saveDirectory = Path.GetDirectoryName(Path.GetFullPath(path));
112
foreach (var file in this)
113
114
if (file.IsSeparator)
@@ -118,7 +120,7 @@ public void Save(string path)
118
120
sb
119
121
.Append(file.Enabled ? "1" : "0")
122
.Append(' ')
- .Append(file.Path)
123
+ .Append(file.Path.MakeRelativeTo(saveDirectory))
124
.AppendLine();
125
}
126
0 commit comments