Skip to content

Commit

Permalink
Fixed certain cultures crashing the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Nestorboy committed Sep 9, 2024
1 parent 9d3c880 commit 8d410eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EasyXnb/GeneratorGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Microsoft.Xna.Framework.Graphics;
using System.Configuration;
using System.Collections.Specialized;
using System.Globalization;

//untested:
//texture loading in-game
Expand Down Expand Up @@ -126,7 +127,7 @@ public GeneratorGame()
closeImmediatelySetting = bool.Parse(ConfigurationManager.AppSettings.Get("CloseImmediately"));
waitForInputOnErrorSetting = bool.Parse(ConfigurationManager.AppSettings.Get("WaitForInputOnError"));

modelScale = float.Parse(ConfigurationManager.AppSettings.Get("ModelScale"));
modelScale = float.Parse(ConfigurationManager.AppSettings.Get("ModelScale"), CultureInfo.InvariantCulture);
modelSwapWindingOrder = bool.Parse(ConfigurationManager.AppSettings.Get("ModelSwapWindingOrder"));
modelGenerateTangentFrames = bool.Parse(ConfigurationManager.AppSettings.Get("ModelGenerateTangentFrames"));

Expand Down

0 comments on commit 8d410eb

Please sign in to comment.