From 67c281129bf1ce433ca498485a359f439368f32e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 4 Sep 2010 20:55:45 +0000 Subject: [PATCH] Win32 - Rmawatch - Oops, typo. 2 byte is now little endian for real. --- src/drivers/win/ramwatch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/win/ramwatch.cpp b/src/drivers/win/ramwatch.cpp index 89c9a3ef..f00ce94f 100644 --- a/src/drivers/win/ramwatch.cpp +++ b/src/drivers/win/ramwatch.cpp @@ -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);