Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            ConsoleBackend.Instance.WindowTitle = "Emul8";
            ConfigureEnvironment();

            var thread = new Thread(() =>
            {
                var options       = new Options();
                var optionsParser = new OptionsParser();
                try
                {
                    if (optionsParser.Parse(options, args))
                    {
                        CommandLineInterface.Run(options);
                    }
                }
                finally
                {
                    Emulator.FinishExecutionAsMainThread();
                }
            });

            thread.Start();
            Emulator.ExecuteAsMainThread();
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            var thread = new Thread(() =>
            {
                CommandLineInterface.Run(args);
                Emulator.FinishExecutionAsMainThread();
            });

            thread.Start();
            Emulator.ExecuteAsMainThread();
        }