From ca13b2ecaa70449228ecd3d1a76067c5212fb638 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 14 Dec 2008 22:08:33 +0000 Subject: [PATCH] Win32 - Hex Editor - prevent the user from freezing more than 256 addresses at once --- changelog.txt | 1 + src/cheat.cpp | 2 +- src/drivers/win/memview.cpp | 5 +++++ src/drivers/win/window.cpp | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 22bc752a..fa4077d5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ ---version 2.0.4 yet to be released--- +14-dec-2008 - adelikat - win32 - hexeditor - prevent the user from freezing more than 256 addresses at once 14-dec-2008 - adelikat - win32 - memwatch - collapsable to 1 column 08-dec-2008 - adelikat - win32 - stop lua menu item gray if no lua script is running 08-dec-2008 - adelikat - win32 - fix bug where no sound + mute turbo caused chirps when toggling diff --git a/src/cheat.cpp b/src/cheat.cpp index a1b9eaac..1fbeb4b0 100644 --- a/src/cheat.cpp +++ b/src/cheat.cpp @@ -111,7 +111,7 @@ void RebuildSubCheats(void) { int x; struct CHEATF *c=cheats; - + FCEU_DispMessage("Numcheats: %d",numsubcheats); for(x=0;x 256) //There is a limit of 256 possible frozen addresses, therefore if the user has selected more than this limit, disable freeze menu items + { + EnableMenuItem(sub,ID_ADDRESS_FRZ_TOGGLE_STATE,MF_GRAYED); + EnableMenuItem(sub,ID_ADDRESS_FRZ_FREEZE,MF_GRAYED); + } continue; } // ################################## End of SP CODE ########################### diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index bb143046..b166e3cc 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -1795,7 +1795,7 @@ void ChangeMenuItemText(int menuitem, string text) void UpdateMenuHotkeys() { - //Update all menu items that can be called rom a hotkey + //Update all menu items that can be called from a hotkey to include the current hotkey assignment string combo, combined; //-------------------------------FILE---------------------------------------