gsdumpgui: Make it work even if it's not named GsDumpGUI.exe

Fixes #1592.

[skip ci]
This commit is contained in:
Jonathan Li 2016-09-28 23:21:26 +01:00
parent 8d4fadb3c8
commit e511265cc9
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ namespace GSDumpGUI
psi.RedirectStandardOutput = true;
psi.RedirectStandardError = false;
psi.CreateNoWindow = true;
psi.FileName = AppDomain.CurrentDomain.BaseDirectory + "GsDumpGUI.exe";
psi.FileName = Process.GetCurrentProcess().ProcessName;
psi.Arguments = "\"" + DLLPath + "\"" + " \"" + DumpPath + "\"" + " \"" + Function + "\"" + " " + SelectedRenderer;
Process p = Process.Start(psi);
p.OutputDataReceived += new DataReceivedEventHandler(p_OutputDataReceived);