From 1f75bd8e069115861d36cea420067871dd5ab02b Mon Sep 17 00:00:00 2001 From: dexy Date: Thu, 19 Mar 2020 05:43:23 +1100 Subject: [PATCH] Updated error report tool to support all launcher .exes --- CodeWalker.ErrorReport/ReportForm.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/CodeWalker.ErrorReport/ReportForm.cs b/CodeWalker.ErrorReport/ReportForm.cs index 692d00b..d1f406f 100644 --- a/CodeWalker.ErrorReport/ReportForm.cs +++ b/CodeWalker.ErrorReport/ReportForm.cs @@ -38,11 +38,18 @@ namespace CodeWalker.ErrorReport { var msg = errLastEntry.Message; var lines = msg.Split('\n'); - if ((lines.Length > 0) && (lines[0].Contains("CodeWalker.exe"))) + if (lines.Length > 0) { - ErrorTextBox.Text = msg.Replace("\n", "\r\n"); - found = true; - break; + var l = lines[0]; + if (l.Contains("CodeWalker.exe") || + l.Contains("CodeWalker RPF Explorer.exe") || + l.Contains("CodeWalker Ped Viewer.exe") || + l.Contains("CodeWalker Vehicle Viewer.exe")) + { + ErrorTextBox.Text = msg.Replace("\n", "\r\n"); + found = true; + break; + } } } }