Skip to content

Commit 3cb527e

Browse files
committed
Launch applications with the executable directory set as the working dir
Required for Hitman 3.
1 parent 3881885 commit 3cb527e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/AutoActions/Applications/ApplicationItem.cs

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public void StartApplication()
163163
{
164164
Process process = new Process();
165165
process.StartInfo = new ProcessStartInfo(ApplicationFilePath);
166+
process.StartInfo.WorkingDirectory = Path.GetDirectoryName(ApplicationFilePath);
166167
process.Start();
167168
}
168169
System.Threading.Thread.Sleep(2500);

0 commit comments

Comments
 (0)