From 73369db6c20e4f7d7152495225e503ae7be1e194 Mon Sep 17 00:00:00 2001 From: KrossX Date: Mon, 29 Jul 2019 20:19:02 -0300 Subject: [PATCH] GSDumpGUI: Enable stderr redirection. Also some tabs to spaces. --- tools/GSDumpGUI/Forms/frmMain.Designer.cs | 4 ++-- tools/GSDumpGUI/Forms/frmMain.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/GSDumpGUI/Forms/frmMain.Designer.cs b/tools/GSDumpGUI/Forms/frmMain.Designer.cs index 0b0f3a7bd0..f66a1d393f 100644 --- a/tools/GSDumpGUI/Forms/frmMain.Designer.cs +++ b/tools/GSDumpGUI/Forms/frmMain.Designer.cs @@ -95,7 +95,7 @@ this.txtGSDXDirectory.Size = new System.Drawing.Size(243, 20); this.txtGSDXDirectory.TabIndex = 0; this.txtGSDXDirectory.TabStop = false; - this.txtGSDXDirectory.Enter += new System.EventHandler(this.txtGSDXDirectory_Enter); + this.txtGSDXDirectory.Enter += new System.EventHandler(this.txtGSDXDirectory_Enter); this.txtGSDXDirectory.Leave += new System.EventHandler(this.txtGSDXDirectory_Leave); // // lblDirectory @@ -145,7 +145,7 @@ this.txtDumpsDirectory.Size = new System.Drawing.Size(243, 20); this.txtDumpsDirectory.TabIndex = 3; this.txtDumpsDirectory.TabStop = false; - this.txtDumpsDirectory.Enter += new System.EventHandler(this.txtDumpsDirectory_Enter); + this.txtDumpsDirectory.Enter += new System.EventHandler(this.txtDumpsDirectory_Enter); this.txtDumpsDirectory.Leave += new System.EventHandler(this.txtDumpsDirectory_Leave); // // lstGSDX diff --git a/tools/GSDumpGUI/Forms/frmMain.cs b/tools/GSDumpGUI/Forms/frmMain.cs index 8caa1b948b..dfccb20484 100644 --- a/tools/GSDumpGUI/Forms/frmMain.cs +++ b/tools/GSDumpGUI/Forms/frmMain.cs @@ -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);