Beispiel #1
0
        static void Main(string[] args)
        {
            Config = Config.LoadConfig();
            if (Config?.AutomaticallyCheckForUpdatesOnStartup ?? true)
            {
                UpdateChecker.CheckUpdateDialog(false);
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Form      = new Form1();
            Form_hWnd = Form.Handle;
            Form.SetAutomaticallyCheckUpdatesChecked(Config?.AutomaticallyCheckForUpdatesOnStartup ?? true);

            Options = new OptionsStructure();

            Core.Options.LoadOptions();

            SplitScreenManager = new SplitScreenManager();
            SplitScreenManager.Init();

            MessageProcessor = new MessageProcessor();

            i = new Intercept();
            var x = new RawInputManager(Form_hWnd);

            InputDisabler.Init();

            Application.Run(Form);            //Not required for RegisterRawInputDevices to work

            SplitScreenManager.DeactivateSplitScreen();

            Logger.WriteLine("Exiting application");
            Environment.Exit(0);
        }