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

            var game = new SpaceGame();

            return(game.InitGame(args));
        }
示例#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;
            }
        }