From 0876ae03d42d4ecfe850ca5f7db386a71211da59 Mon Sep 17 00:00:00 2001 From: p989 Date: Mon, 11 May 2009 04:40:28 +0000 Subject: [PATCH] win32: fixed ram search endianness --- desmume/src/windows/ram_search.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desmume/src/windows/ram_search.cpp b/desmume/src/windows/ram_search.cpp index 7e194e7c9..4187c575a 100644 --- a/desmume/src/windows/ram_search.cpp +++ b/desmume/src/windows/ram_search.cpp @@ -389,14 +389,14 @@ template<> unsigned char ReadBigEndian(const unsigned char* data) { return *data template compareType GetPrevValueFromVirtualIndex(unsigned int virtualIndex) { - return ReadBigEndian(buffers->s_prevValues + virtualIndex); - //return *(compareType*)(s_prevValues+virtualIndex); +// return ReadBigEndian(buffers->s_prevValues + virtualIndex); + return *(compareType*)(buffers->s_prevValues+virtualIndex); } template compareType GetCurValueFromVirtualIndex(unsigned int virtualIndex) { - return ReadBigEndian(buffers->s_curValues + virtualIndex); -// return *(compareType*)(s_curValues+virtualIndex); +// return ReadBigEndian(buffers->s_curValues + virtualIndex); + return *(compareType*)(buffers->s_curValues+virtualIndex); } template unsigned short GetNumChangesFromVirtualIndex(unsigned int virtualIndex)