Fix DWordWatches not being pokable with binary display type

- closes #4045
This commit is contained in:
Morilli 2024-09-20 13:28:34 +02:00
parent e092240bdd
commit 81416e684f
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ namespace BizHawk.Client.Common
WatchDisplayType.FixedPoint_20_12 => (uint)(double.Parse(value, NumberFormatInfo.InvariantInfo) * 4096.0),
WatchDisplayType.FixedPoint_16_16 => (uint)(double.Parse(value, NumberFormatInfo.InvariantInfo) * 65536.0),
WatchDisplayType.Float => NumberExtensions.ReinterpretAsUInt32(float.Parse(value, NumberFormatInfo.InvariantInfo)),
WatchDisplayType.Binary => Convert.ToUInt32(value, 2),
_ => 0
};