/// <summary> /// Entry point /// </summary> /// <param name="args"> /// Command line parameters /// </param> private static void Main(string[] args) { ct = new ConsoleText(); OnScreenBanner.PrintCellAOBanner(ConsoleColor.Yellow); Console.WriteLine(); Console.WriteLine(locales.ServerConsoleMainText, DateTime.Now.Year); if (!Initialize()) { Console.WriteLine("Error occured while initilizing. Please check in log."); return; } CommandLoop(args); LogManager.Configuration = null; }
/// <summary> /// Entry point /// </summary> /// <param name="args"> /// Command line parameters /// </param> private static void Main(string[] args) { ct = new ConsoleText(); OnScreenBanner.PrintCellAOBanner(ConsoleColor.Red); Console.WriteLine(); Console.WriteLine(locales.ServerConsoleMainText, DateTime.Now.Year); if (!Initialize()) { Console.WriteLine(locales.ErrorInitializingEngine); Console.WriteLine("Press enter to exit"); Console.ReadLine(); } else { #if DEBUG StartTheServer(); #endif CommandLoop(args); } // NLog<->Mono lockup fix LogManager.Configuration = null; }