aboutsummaryrefslogtreecommitdiff
path: root/ModLauncher/Program.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-03 19:44:01 -0500
committerMichael <[email protected]>2017-02-03 19:44:01 -0500
commit318fef283e57221349eb6412db63d63399f4fb86 (patch)
treefb5850eebc36800909516cc09f2ca89631f478fd /ModLauncher/Program.cs
parent7edc0f10bb79453fdc3bf885cbd21be40f7839b5 (diff)
downloadshiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.tar.gz
shiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.tar.bz2
shiftos_thereturn-318fef283e57221349eb6412db63d63399f4fb86.zip
Fix crash handler
Diffstat (limited to 'ModLauncher/Program.cs')
-rw-r--r--ModLauncher/Program.cs33
1 files changed, 33 insertions, 0 deletions
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
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [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;
+ }
+ }
+}