GSDumpGUI: Enable stderr redirection.

Also some tabs to spaces.
This commit is contained in:
KrossX 2019-07-29 20:19:02 -03:00 committed by lightningterror
parent 9dd92c1cb5
commit 73369db6c2
2 changed files with 4 additions and 3 deletions

View File

@ -393,12 +393,13 @@ namespace GSDumpGUI
ProcessStartInfo psi = new ProcessStartInfo();
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardError = false;
psi.RedirectStandardError = true;
psi.CreateNoWindow = true;
psi.FileName = Process.GetCurrentProcess().ProcessName;
psi.Arguments = "\"" + dllPath + "\"" + " \"" + dumpPath + "\"" + " \"" + Function + "\"" + " " + SelectedRenderer + " " + port;
Process p = Process.Start(psi);
p.OutputDataReceived += new DataReceivedEventHandler(p_OutputDataReceived);
p.ErrorDataReceived += new DataReceivedEventHandler(p_OutputDataReceived);
p.BeginOutputReadLine();
p.Exited += new EventHandler(p_Exited);
Processes.Add(p);