aboutsummaryrefslogtreecommitdiff
path: root/ModLauncher/Program.cs
blob: 66e9726d00fb06dc02f0517bb47715b6896b7ee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
        }
    }
}