From 318fef283e57221349eb6412db63d63399f4fb86 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 3 Feb 2017 19:44:01 -0500 Subject: Fix crash handler --- ModLauncher/Program.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ModLauncher/Program.cs (limited to 'ModLauncher/Program.cs') diff --git a/ModLauncher/Program.cs b/ModLauncher/Program.cs new file mode 100644 index 0000000..66e9726 --- /dev/null +++ b/ModLauncher/Program.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; + +namespace ModLauncher +{ + [Namespace("modlauncher")] + public static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + ShiftOS.WinForms.Program.Main(); + } + + [Command("throwcrash")] + public static bool ThrowCrash() + { + new Thread(() => + { + throw new Exception("User triggered crash using modlauncher.throwcrash command."); + }).Start(); + return true; + } + } +} -- cgit v1.2.3