From 131a3a989bd9f141b2648fcf31707ffe54dd8a77 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 7 May 2009 17:11:06 +0000 Subject: [PATCH] Win32 - Prevent loading Ram Watch and Ram Search dialog if no rom is loaded. --- desmume/src/windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 346750951..ea92d7af2 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -2500,6 +2500,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM EnableMenuItem(mainMenu, IDM_PLAY_MOVIE, MF_BYCOMMAND | (romloaded && movieMode == MOVIEMODE_INACTIVE) ? MF_ENABLED : MF_GRAYED); EnableMenuItem(mainMenu, IDM_STOPMOVIE, MF_BYCOMMAND | (romloaded && movieMode != MOVIEMODE_INACTIVE) ? MF_ENABLED : MF_GRAYED); + EnableMenuItem(mainMenu, ID_RAM_WATCH, MF_BYCOMMAND | (romloaded) ? MF_ENABLED : MF_GRAYED); + EnableMenuItem(mainMenu, ID_RAM_SEARCH, MF_BYCOMMAND | (romloaded) ? MF_ENABLED : MF_GRAYED); //Update savestate slot items based on ROM loaded for (int x = 0; x < 10; x++) {