Skip to content
Permalink
Browse files

GSDumpGUI: Different color for error log output.

  • Loading branch information...
KrossX authored and lightningterror committed Jul 29, 2019
1 parent 73369db commit b6415bf6fc5249cc9aab803273d3ddeaf2eddf1f
Showing with 8 additions and 3 deletions.
  1. +8 −3 tools/GSDumpGUI/Forms/frmMain.cs
@@ -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);
@@ -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

0 comments on commit b6415bf

Please sign in to comment.
You can’t perform that action at this time.