mirror of
https://github.com/libretro/Mesen.git
synced 2025-01-31 22:01:52 +00:00
UI: Fixed regression in entity binding logic
This commit is contained in:
parent
8a2c2dc834
commit
0ba1c362d0
@ -152,7 +152,7 @@ namespace Mesen.GUI.Forms
|
||||
object value = kvp.Value.Text;
|
||||
NumberStyles numberStyle = format == eNumberFormat.Decimal ? NumberStyles.Integer : NumberStyles.HexNumber;
|
||||
value = ((string)value).Trim().Replace("$", "").Replace("0x", "");
|
||||
if(string.IsNullOrWhiteSpace((string)value)) {
|
||||
if(field.FieldType != typeof(string) && string.IsNullOrWhiteSpace((string)value)) {
|
||||
value = "0";
|
||||
}
|
||||
if(field.FieldType == typeof(UInt32)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user