Skip to content

Commit

Permalink
GSDumpGUI: Different color for error log output.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrossX authored and lightningterror committed Aug 7, 2019
1 parent 73369db commit b6415bf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/GSDumpGUI/Forms/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ private void ExecuteFunction(String Function)
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.OutputDataReceived += new DataReceivedEventHandler(p_StdOutDataReceived);
p.ErrorDataReceived += new DataReceivedEventHandler(p_StdErrDataReceived);
p.BeginOutputReadLine();
p.Exited += new EventHandler(p_Exited);
Processes.Add(p);
Expand Down Expand Up @@ -429,11 +429,16 @@ private void p_Exited(object sender, EventArgs e)
Processes.Remove((Process)sender);
}

private void p_OutputDataReceived(object sender, DataReceivedEventArgs e)
private void p_StdOutDataReceived(object sender, DataReceivedEventArgs e)
{
_gsdxLogger.Information(e.Data);
}

private void p_StdErrDataReceived(object sender, DataReceivedEventArgs e)
{
_gsdxLogger.Error(e.Data);
}

private void cmdConfigGSDX_Click(object sender, EventArgs e)
{
// Execute the GSconfigure function
Expand Down

0 comments on commit b6415bf

Please sign in to comment.