Stop discarding Lua session save directory

Previously any path would into ".\foo.luases" and be saved in exe dir
This commit is contained in:
kalimag 2022-11-27 19:54:03 +01:00 committed by James Groom
parent 9ee788195a
commit 7c7ac64ae6
1 changed files with 3 additions and 7 deletions

View File

@ -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.";
}
}