Fix culture to en-US across entire program to avoid parsing issues etc

This commit is contained in:
N00MKRAD
2023-12-21 19:12:12 +01:00
parent 5da083bf2c
commit 916dd2fe06
4 changed files with 8 additions and 184 deletions

View File

@@ -7,6 +7,7 @@ using Flowframes.Os;
using Flowframes.Ui;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
@@ -35,6 +36,12 @@ namespace Flowframes
[STAThread]
static void Main()
{
var culture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
Paths.Init();
Config.Init();
Cleanup();