Newer
Older
Gola2 / Gola2 / Program.cs
@XWolf Override XWolf Override on 26 May 2019 942 bytes Buggy physics
using System;
using System.Windows.Forms;

namespace Gola2
{
    static class Program
    {
        static MainForm main;
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (CheckArguments())
            {
                main = new MainForm();
                MainForm.MakeGola(null);
                Application.Run();
            }
        }

        static bool CheckArguments()
        {
            string[] args = Environment.GetCommandLineArgs();
            if (args.Length < 2)
                return true;
            if (args[1].ToLower() == "editor")
            {
                CreatureEditor.Execute();
                return false;
            }
            return true;
        }
    }
}