Fixed problems in the configuration file with different regions

This commit is contained in:
John Clemis 2018-06-28 18:22:40 -05:00
parent 6a4cabba1e
commit d0be618495

View file

@ -37,8 +37,10 @@ namespace Ryujinx
GamePadEnable = Convert.ToBoolean(Parser.Value("GamePad_Enable"));
GamePadIndex = Convert.ToInt32 (Parser.Value("GamePad_Index"));
GamePadDeadzone = (float)Convert.ToDouble (Parser.Value("GamePad_Deadzone"));
GamePadTriggerThreshold = (float)Convert.ToDouble (Parser.Value("GamePad_Trigger_Threshold"));
GamePadDeadzone = (float)Convert.ToDouble (Parser.Value("GamePad_Deadzone"),
System.Globalization.CultureInfo.InvariantCulture); // Remember to use Invariant Culture when dealing with parsing doubles.
GamePadTriggerThreshold = (float)Convert.ToDouble (Parser.Value("GamePad_Trigger_Threshold"),
System.Globalization.CultureInfo.InvariantCulture);
string[] FilteredLogClasses = Parser.Value("Logging_Filtered_Classes").Split(',', StringSplitOptions.RemoveEmptyEntries);