From c112f0b036c74e9245d212e3c78d43f5acbab353 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Tue, 21 Sep 2021 05:39:19 +1000 Subject: [PATCH] Resolve relative paths passed as --lua (resolves #2077) --- src/BizHawk.Client.EmuHawk/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/MainForm.cs b/src/BizHawk.Client.EmuHawk/MainForm.cs index a8003e8501..73b7b7016e 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.cs @@ -623,7 +623,7 @@ namespace BizHawk.Client.EmuHawk if (_argParser.luaScript != null) { if (OSTailoredCode.IsUnixHost) Console.WriteLine($"The Lua environment can currently only be created on Windows, {_argParser.luaScript} will not be loaded."); - else Tools.LuaConsole.LoadLuaFile(_argParser.luaScript); + else Tools.LuaConsole.LoadLuaFile(_argParser.luaScript.MakeAbsolute()); } SetStatusBar();