mirror of https://github.com/PCSX2/pcsx2.git
GSDumpGUI: Different color for error log output.
This commit is contained in:
parent
73369db6c2
commit
b6415bf6fc
|
@ -398,8 +398,8 @@ namespace GSDumpGUI
|
||||||
psi.FileName = Process.GetCurrentProcess().ProcessName;
|
psi.FileName = Process.GetCurrentProcess().ProcessName;
|
||||||
psi.Arguments = "\"" + dllPath + "\"" + " \"" + dumpPath + "\"" + " \"" + Function + "\"" + " " + SelectedRenderer + " " + port;
|
psi.Arguments = "\"" + dllPath + "\"" + " \"" + dumpPath + "\"" + " \"" + Function + "\"" + " " + SelectedRenderer + " " + port;
|
||||||
Process p = Process.Start(psi);
|
Process p = Process.Start(psi);
|
||||||
p.OutputDataReceived += new DataReceivedEventHandler(p_OutputDataReceived);
|
p.OutputDataReceived += new DataReceivedEventHandler(p_StdOutDataReceived);
|
||||||
p.ErrorDataReceived += new DataReceivedEventHandler(p_OutputDataReceived);
|
p.ErrorDataReceived += new DataReceivedEventHandler(p_StdErrDataReceived);
|
||||||
p.BeginOutputReadLine();
|
p.BeginOutputReadLine();
|
||||||
p.Exited += new EventHandler(p_Exited);
|
p.Exited += new EventHandler(p_Exited);
|
||||||
Processes.Add(p);
|
Processes.Add(p);
|
||||||
|
@ -429,11 +429,16 @@ namespace GSDumpGUI
|
||||||
Processes.Remove((Process)sender);
|
Processes.Remove((Process)sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void p_OutputDataReceived(object sender, DataReceivedEventArgs e)
|
private void p_StdOutDataReceived(object sender, DataReceivedEventArgs e)
|
||||||
{
|
{
|
||||||
_gsdxLogger.Information(e.Data);
|
_gsdxLogger.Information(e.Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void p_StdErrDataReceived(object sender, DataReceivedEventArgs e)
|
||||||
|
{
|
||||||
|
_gsdxLogger.Error(e.Data);
|
||||||
|
}
|
||||||
|
|
||||||
private void cmdConfigGSDX_Click(object sender, EventArgs e)
|
private void cmdConfigGSDX_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Execute the GSconfigure function
|
// Execute the GSconfigure function
|
||||||
|
|
Loading…
Reference in New Issue