Load Lua session - when loading a relative path, drop the .\ part, I'm disappointed in Path.Combine
This commit is contained in:
parent
8e5fe06579
commit
ca3b43973c
|
@ -100,7 +100,7 @@ namespace BizHawk.Client.Common
|
|||
if (!Path.IsPathRooted(scriptPath))
|
||||
{
|
||||
var directory = Path.GetDirectoryName(path);
|
||||
scriptPath = Path.Combine(directory, scriptPath);
|
||||
scriptPath = Path.GetFullPath(Path.Combine(directory, scriptPath));
|
||||
}
|
||||
|
||||
Add(new LuaFile(scriptPath)
|
||||
|
|
Loading…
Reference in New Issue