mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Force en-US culture to fix decimal seperator.
This commit is contained in:
parent
fb413ddf8a
commit
a8ec469252
2 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue