コード例 #1
0
ファイル: Program.cs プロジェクト: susu/Torch
        private static void RunClient()
        {
            var client = new TorchClient();

            try
            {
                client.Init();
            }
            catch (Exception e)
            {
                _log.Fatal("Torch encountered an error trying to initialize the game.");
                _log.Fatal(e);
                return;
            }

            client.Start();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: carlosmaid/Torch
        public static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            var client = new TorchClient();

            try
            {
                client.Init();
            }
            catch (Exception e)
            {
                _log.Fatal("Torch encountered an error trying to initialize the game.");
                _log.Fatal(e);
                return;
            }

            client.Start();
        }