Win32 - Rmawatch - Oops, typo. 2 byte is now little endian for real.

This commit is contained in:
adelikat 2010-09-04 20:55:45 +00:00
parent 5bab6557f4
commit 67c281129b
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ bool ResetWatches();
unsigned int GetCurrentValue(AddressWatcher& watch)
{
unsigned int x = 0;
if (watch.Size == 2) //Do little endian
//TODO: A similar if for 4-byte just to be through, but there shouldn't be any reason to have 4-byte on the NES!
if (watch.Size == 'w') //Do little endian
{
x = ReadValueAtHardwareAddress(watch.Address+1, 1) * 256;
x += ReadValueAtHardwareAddress(watch.Address, 1);