Example #1
0
        static void Main(string[] args)
        {
            Log.Info("Boot");
            Log.Info($"Version {ProductVersion}");
            Config.Open();
            Config.Listen();

#if DEBUG
            using (var game = new OpenKhGame(args))
                game.Run();
#else
            try
            {
                using (var game = new OpenKhGame(args))
                    game.Run();
            }
            catch (Exception ex)
            {
                Log.Err("A fatal error has occurred. Please attach this log to https://github.com/xeeynamo/openkh/issues");
                Catch(ex);
                Log.Close();

                throw ex;
            }
#endif

            Config.Close();
            Log.Info("End");
            Log.Close();
        }
Example #2
0
 static void Main()
 {
     using (var game = new OpenKhGame())
         game.Run();
 }