From f623fd79f205aa675ef1056aeddb12f9f02bc4ad Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Thu, 8 Jun 2023 17:01:18 +0200 Subject: [PATCH] fixed error from prev commit --- WeeXnes/Core/CustomConsole.cs | 9 ++++++++- WeeXnes/Core/Global.cs | 2 +- WeeXnes/WeeXnes.csproj | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/WeeXnes/Core/CustomConsole.cs b/WeeXnes/Core/CustomConsole.cs index d7568e5..ba3b935 100644 --- a/WeeXnes/Core/CustomConsole.cs +++ b/WeeXnes/Core/CustomConsole.cs @@ -33,7 +33,14 @@ namespace WeeXnes.Core ConsoleColor color, ConsoleColor foregroundColor = ConsoleColor.White) { - VanillaConsole.OutputEncoding = Encoding.UTF8; + try + { + VanillaConsole.OutputEncoding = Encoding.UTF8; + } + catch (Exception ex) + { + VanillaConsole.WriteLine("error setting OutputEncoding to UTF8"); + } ConsoleColor prevColor = VanillaConsole.BackgroundColor; ConsoleColor prevForeColor = VanillaConsole.ForegroundColor; if (Data.Colors.colored_output) diff --git a/WeeXnes/Core/Global.cs b/WeeXnes/Core/Global.cs index dae1799..e7671eb 100644 --- a/WeeXnes/Core/Global.cs +++ b/WeeXnes/Core/Global.cs @@ -8,7 +8,7 @@ namespace WeeXnes.Core { public class Information { - public const string Version = "4.3.2"; + public const string Version = "4.3.3"; public const string EncryptionHash = "8zf5#RdyQ]$4x4_"; public const string ApiUrl = "https://api.github.com/repos/weexnes/weexnessuite/releases/latest"; } diff --git a/WeeXnes/WeeXnes.csproj b/WeeXnes/WeeXnes.csproj index db500fa..fe1e28b 100644 --- a/WeeXnes/WeeXnes.csproj +++ b/WeeXnes/WeeXnes.csproj @@ -4,7 +4,7 @@ Debug AnyCPU - 4.3.2 + 4.3.3 {4B33CEE7-C74D-43B9-B99A-8B273D5195BC} WinExe WeeXnes