Ram Watch/Ram Search - Fix freezing of float values as well as some other types

This commit is contained in:
adelikat 2014-08-02 01:54:07 +00:00
parent a84e3b3a3b
commit 9cfb30093a
1 changed files with 12 additions and 1 deletions

View File

@ -221,7 +221,18 @@ namespace BizHawk.Client.Common
}
else
{
_watch.Poke(GetStringForPulse(_val));
switch(_watch.Size)
{
case Watch.WatchSize.Byte:
_watch.Poke((_watch as ByteWatch).FormatValue((byte)_val));
break;
case Watch.WatchSize.Word:
_watch.Poke((_watch as WordWatch).FormatValue((ushort)_val));
break;
case Watch.WatchSize.DWord:
_watch.Poke((_watch as DWordWatch).FormatValue((uint)_val));
break;
}
}
}
}