Explicitly set current working directory

Avoids issues when launching the game from a URL
This commit is contained in:
penev92
2015-07-15 00:32:04 +03:00
parent b58d1037ea
commit fb0b60dddf

View File

@@ -28,6 +28,8 @@ namespace OpenRA
var executableDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var processName = Path.Combine(executableDirectory, "OpenRA.Game.exe");
Directory.SetCurrentDirectory(executableDirectory);
var psi = new ProcessStartInfo(processName, string.Join(" ", args));
try