Moved encoding out of the basicIO if statement.

This commit is contained in:
Barnehhh 2017-09-11 00:52:21 -04:00 committed by ORelio
parent 1a2e86e684
commit 5edb8f9024

View file

@ -45,9 +45,9 @@ namespace MinecraftClient
if (args.Length >= 1 && args[args.Length - 1] == "BasicIO") if (args.Length >= 1 && args[args.Length - 1] == "BasicIO")
{ {
ConsoleIO.basicIO = true; ConsoleIO.basicIO = true;
Console.OutputEncoding = Console.InputEncoding = Encoding.UTF8;
args = args.Where(o => !Object.ReferenceEquals(o, args[args.Length - 1])).ToArray(); args = args.Where(o => !Object.ReferenceEquals(o, args[args.Length - 1])).ToArray();
} }
Console.OutputEncoding = Console.InputEncoding = Encoding.UTF8;
//Process ini configuration file //Process ini configuration file
if (args.Length >= 1 && System.IO.File.Exists(args[0]) && System.IO.Path.GetExtension(args[0]).ToLower() == ".ini") if (args.Length >= 1 && System.IO.File.Exists(args[0]) && System.IO.Path.GetExtension(args[0]).ToLower() == ".ini")