Exemple #1
0
        public static void Main(string[] args)
        {
            string datadir = null;

            string[] openFiles = null;
            if (args.Length > 0)
            {
                if (!GameConfig.CheckFLDirectory(args[0]))
                {
                    Console.Error.WriteLine("Error: {0} is not a valid data directory", args[0]);
                    return;
                }
                datadir   = args[0];
                openFiles = args.Skip(1).ToArray();
            }
            MainWindow mw = null;

            AppHandler.Run(() =>
            {
                mw                = new MainWindow();
                mw.PreloadOpen    = openFiles;
                mw.PreloadDataDir = datadir;
                mw.Run();
            }, () => mw.Crashed());
        }
 static void Main(string[] args)
 {
     AppHandler.Run(() =>
     {
         WindowsChecks();
         new MainWindow().Run();
     });
 }
        public static void Main(string[] args)
        {
            MainWindow mw = null;

            AppHandler.Run(() =>
            {
                mw = new MainWindow();
                mw.Run();
            }, () => mw.Crashed());
        }
Exemple #4
0
        static void Main(string[] args)
        {
            MainWindow mw = null;

            AppHandler.Run(() =>
            {
                mw = new MainWindow()
                {
                    InitOpenFile = args
                };
                mw.Run();
                mw.Config.Save();
            }, () => mw.Crashed());
        }
        public static void Main(string[] args)
        {
            FreelancerGame flgame = null;

            AppHandler.Run(() =>
            {
                Func <string> filePath = null;
                if (args.Length > 0)
                {
                    filePath = () => args[0];
                }
                var cfg = GameConfig.Create(true, filePath);
                flgame  = new FreelancerGame(cfg);
                flgame.Run();
            }, () => flgame.Crashed());
        }
 /// <summary>
 /// Main method
 /// </summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     // calling app handler run method to start the console app
     AppHandler.Run();
 }