Beispiel #1
0
        public static int Main(string[] args)
        {
            AppDomain.CurrentDomain.AssemblyResolve += GameBase.CurrentDomain_AssemblyResolve;

            if (args != null)
            {
                foreach (string arg in args)
                {
                    if (arg == "--vrage-error-log-upload")
                    {
                        return(0);
                    }
                }
            }

            try
            {
                var game       = new MedievalGame();
                int resultCode = game.InitGame(args);
                return(resultCode);
            }
            catch
            {
                CheckForUpdate();
                throw;
            }
        }
Beispiel #2
0
        public static int Main(string[] args)
        {
            AppDomain.CurrentDomain.AssemblyResolve += GameBase.CurrentDomain_AssemblyResolve;

            if (args != null)
            {
                foreach (string arg in args)
                {
                    if (arg == "--vrage-error-log-upload")
                    {
                        return(0);
                    }
                }
            }

            var game       = new MedievalGame();
            int resultCode = game.InitGame(args);

            if (Debugger.IsAttached)
            {
                Console.WriteLine("Press any key to exit.");
                Console.ReadKey();
            }
            return(resultCode);
        }
Beispiel #3
0
        public static int Main(string[] args)
        {
            AppDomain.CurrentDomain.AssemblyResolve += GameBase.CurrentDomain_AssemblyResolve;

            var game = new MedievalGame();

            return(game.InitGame(args));
        }