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(); }
static void Main() { using (var game = new OpenKhGame()) game.Run(); }