From 455e2c70806416aef681747d71f23d5fdbec1d13 Mon Sep 17 00:00:00 2001 From: luigi__ Date: Tue, 20 Apr 2010 19:33:41 +0000 Subject: [PATCH] Memview: prevent modification of wifi registers and RAM. --- desmume/src/windows/memView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desmume/src/windows/memView.cpp b/desmume/src/windows/memView.cpp index df56e8475..d24af5d84 100644 --- a/desmume/src/windows/memView.cpp +++ b/desmume/src/windows/memView.cpp @@ -628,6 +628,9 @@ LRESULT CALLBACK MemView_ViewBoxProc(HWND hCtl, UINT uMsg, WPARAM wParam, LPARAM if(((ch >= '0') && (ch <= '9')) || ((ch >= 'A') && (ch <= 'F')) || ((ch >= 'a') && (ch <= 'f'))) { + if ((wnd->cpu == ARMCPU_ARM7) && ((wnd->selAddress & 0xFFFF0000) == 0x04800000)) + return DefWindowProc(hCtl, uMsg, wParam, lParam); + u8 maxSelPart[3] = {2, 4, 8}; wnd->selNewVal <<= 4;