Skip to content

Commit

Permalink
Launch applications with the executable directory set as the working dir
Browse files Browse the repository at this point in the history
Required for Hitman 3.
  • Loading branch information
res2k committed Apr 3, 2022
1 parent bcdee94 commit f624fc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/AutoActions/Applications/ApplicationItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f624fc8

Please sign in to comment.