possibly fix crash in GB GPU debugger on operating systems using the wrong language (untested)
This commit is contained in:
parent
111648cf98
commit
b82cc74a5d
|
@ -331,7 +331,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
else if (!(val is bool) && prop.PropertyType.IsPrimitive)
|
||||
{
|
||||
// numeric constanst are similarly hosed
|
||||
val = Convert.ChangeType(val, prop.PropertyType);
|
||||
val = Convert.ChangeType(val, prop.PropertyType, System.Globalization.CultureInfo.InvariantCulture);
|
||||
}
|
||||
prop.SetValue(tool, val, null);
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
data.Clear();
|
||||
foreach (var prop in props)
|
||||
{
|
||||
data.Add(prop.Name, prop.GetValue(tool, null));
|
||||
data.Add(prop.Name, prop.GetValue(tool, BindingFlags.GetProperty, Type.DefaultBinder, null, System.Globalization.CultureInfo.InvariantCulture));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue