mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
GSDumpGUI: Different color for error log output.
This commit is contained in:
@@ -398,8 +398,8 @@ namespace GSDumpGUI
|
||||
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 @@ namespace GSDumpGUI
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user