Force en-US culture to fix decimal seperator.

This commit is contained in:
KillzXGaming 2020-06-14 12:11:07 -04:00
parent fb413ddf8a
commit a8ec469252
2 changed files with 3 additions and 3 deletions

View file

@ -94,9 +94,6 @@ namespace Toolbox.Library.Animations
public void Save(string FileName)
{
System.Globalization.CultureInfo customCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
customCulture.NumberFormat.NumberDecimalSeparator = ".";
StringBuilder o = new StringBuilder();
o.AppendLine("version 1");

View file

@ -4,6 +4,8 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Globalization;
using System.Threading;
using System.Runtime.InteropServices;
using System.Reflection;
using Microsoft.VisualBasic.ApplicationServices;
@ -23,6 +25,7 @@ namespace Toolbox
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
Toolbox.Library.Runtime.ExecutableDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
string[] args = Environment.GetCommandLineArgs();