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

            var game = new SpaceGame();

            return(game.InitGame(args));
        }
Exemple #2
0
        public static int Main(string[] args)
        {
            AppDomain.CurrentDomain.AssemblyResolve += GameBase.CurrentDomain_AssemblyResolve;
            AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += GameBase.CurrentDomain_ReflectionOnlyAssemblyResolve;

            try
            {
                var game = new SpaceGame();
                return(game.InitGame(args));
            }
            catch
            {
                CheckForUpdate();
                throw;
            }
        }