Move winforms crash dialog into an external helper.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user