From e511265cc9871456d7982a44e0829149350ae841 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Wed, 28 Sep 2016 23:21:26 +0100 Subject: [PATCH] gsdumpgui: Make it work even if it's not named GsDumpGUI.exe Fixes #1592. [skip ci] --- tools/GSDumpGUI/Forms/frmMain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/GSDumpGUI/Forms/frmMain.cs b/tools/GSDumpGUI/Forms/frmMain.cs index 12a9dfc43c..07e74a4163 100644 --- a/tools/GSDumpGUI/Forms/frmMain.cs +++ b/tools/GSDumpGUI/Forms/frmMain.cs @@ -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);