Write a utility.log to the logs dir when the utility crashes

This commit is contained in:
Paul Chote
2011-03-30 20:52:54 +13:00
parent 5d762b1f9c
commit 3dda9ee607
2 changed files with 24 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRA
{
Process p = new Process();
p.StartInfo.FileName = Utility;
p.StartInfo.Arguments = args;
p.StartInfo.Arguments = "{0} --SupportDir \"{1}\"".F(args, Game.SupportDir);
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
@@ -58,7 +58,7 @@ namespace OpenRA
{
Process p = new Process();
p.StartInfo.FileName = Utility;
p.StartInfo.Arguments = args;
p.StartInfo.Arguments = "{0} --SupportDir \"{1}\"".F(args, Game.SupportDir);
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;