From 3cb527e428c79c0144ad1f5db62c242e272a7709 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Sun, 3 Apr 2022 13:46:51 +0200 Subject: [PATCH] Launch applications with the executable directory set as the working dir Required for Hitman 3. --- Source/AutoActions/Applications/ApplicationItem.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/AutoActions/Applications/ApplicationItem.cs b/Source/AutoActions/Applications/ApplicationItem.cs index debb616..12755a3 100644 --- a/Source/AutoActions/Applications/ApplicationItem.cs +++ b/Source/AutoActions/Applications/ApplicationItem.cs @@ -163,6 +163,7 @@ public void StartApplication() { Process process = new Process(); process.StartInfo = new ProcessStartInfo(ApplicationFilePath); + process.StartInfo.WorkingDirectory = Path.GetDirectoryName(ApplicationFilePath); process.Start(); } System.Threading.Thread.Sleep(2500);