Skip to content

Commit

Permalink
Fix Play button from any path
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery committed Nov 1, 2024
1 parent c9bb565 commit 3990c38
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion EQEmu Patcher/EQEmu Patcher/UtilityLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ public static string GetMD5(string filename)

public static System.Diagnostics.Process StartEverquest()
{
return System.Diagnostics.Process.Start("eqgame.exe", "patchme");
var startInfo = new System.Diagnostics.ProcessStartInfo
{
FileName = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\eqgame.exe",
Arguments = "patchme",
WorkingDirectory = System.IO.Path.GetDirectoryName(Application.ExecutablePath)
};

return System.Diagnostics.Process.Start(startInfo);
}

//Pass the working directory (or later, you can pass another directory) and it returns a hash if the file is found
Expand Down

0 comments on commit 3990c38

Please sign in to comment.