Load Lua session - when loading a relative path, drop the .\ part, I'm disappointed in Path.Combine

This commit is contained in:
adelikat 2016-01-30 18:08:11 -05:00
parent 8e5fe06579
commit ca3b43973c
1 changed files with 1 additions and 1 deletions

View File

@ -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)