From 3df2112be70f67d8db7493e44954c7e1a66ac7cc Mon Sep 17 00:00:00 2001 From: Maik Macho Date: Mon, 3 Sep 2018 16:46:36 +0200 Subject: [PATCH] Set the default culture to InvariantCulture This mainly affects some C# string conversions (ToString and Parse). --- Ryujinx/Ui/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ryujinx/Ui/Program.cs b/Ryujinx/Ui/Program.cs index 7acf73a552..ccc416f781 100644 --- a/Ryujinx/Ui/Program.cs +++ b/Ryujinx/Ui/Program.cs @@ -4,6 +4,7 @@ using Ryujinx.Graphics.Gal; using Ryujinx.Graphics.Gal.OpenGL; using Ryujinx.HLE; using System; +using System.Globalization; using System.IO; namespace Ryujinx @@ -14,6 +15,9 @@ namespace Ryujinx { Console.Title = "Ryujinx Console"; + CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; + CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture; + IGalRenderer Renderer = new OGLRenderer(); IAalOutput AudioOut = new OpenALAudioOut();