Esempio n. 1
0
        public static void Main(string[] args)
        {
            // Init
            SetupEmbeddedAssemblies();
            Platform  = DeterminePlatform();
            Arguments = new ProgramArguments(args);
            Language  = DetermineLanguage();

            // Determine UI to run
            string gui = Arguments.GetString("gui");

            if (gui == null)
            {
                if (Platform == Platform.Windows)
                {
                    gui = "winforms";
                }
                else
                {
                    gui = "gtk";
                }
            }

            // Run UI
            if (gui == "winforms")
            {
                WinFormsInterface.Run();
            }
            else if (gui == "gtk")
            {
                GTKInterface.Run();
            }
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            // Init
            Logger.Log("IndieLauncher");
            Platform = DeterminePlatform();
            Logger.Log("Platform: {0}", Platform);

            SetupEmbeddedAssemblies();
            Arguments = new ProgramArguments(args);
            Language  = DetermineLanguage();
            Logger.Log("Language: {0}", Language.Code);

            // Determine UI to run
            string gui = Arguments.GetString("gui");

            if (gui == null)
            {
                if (Platform == Platform.Windows)
                {
                    gui = "winforms";
                }
                else
                {
                    gui = "gtk";
                }
            }
            Logger.Log("GUI: {0}", gui);

            // Run UI
            if (gui == "winforms")
            {
                WinFormsInterface.Run();
            }
            else if (gui == "gtk")
            {
                GTKInterface.Run();
            }

            // Save log
            Logger.Save();
        }