Move winforms crash dialog into an external helper.

This commit is contained in:
Paul Chote
2014-05-03 11:48:00 +12:00
parent 5b8b01950f
commit fe6831a095
9 changed files with 96 additions and 15 deletions

View File

@@ -92,5 +92,16 @@ namespace OpenRA
return dir + Path.DirectorySeparatorChar;
}
}
public static void ShowFatalErrorDialog()
{
var process = "OpenRA.CrashDialog.exe";
var args = "";
var psi = new ProcessStartInfo(process, args);
psi.UseShellExecute = false;
psi.CreateNoWindow = true;
Process.Start(psi);
}
}
}