Win32 - Hex Editor - prevent the user from freezing more than 256 addresses at once
This commit is contained in:
parent
403a5c8b56
commit
ca13b2ecaa
|
@ -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
|
||||
|
|
|
@ -111,7 +111,7 @@ void RebuildSubCheats(void)
|
|||
{
|
||||
int x;
|
||||
struct CHEATF *c=cheats;
|
||||
|
||||
FCEU_DispMessage("Numcheats: %d",numsubcheats);
|
||||
for(x=0;x<numsubcheats;x++)
|
||||
SetReadHandler(SubCheats[x].addr,SubCheats[x].addr,SubCheats[x].PrevRead);
|
||||
|
||||
|
|
|
@ -1107,6 +1107,11 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
AppendMenu(sub, MF_SEPARATOR, ID_ADDRESS_FRZ_SEP, "-");
|
||||
AppendMenu(sub, MF_STRING, ID_ADDRESS_FRZ_UNFREEZE_ALL, "Unfreeze all");
|
||||
|
||||
if (CursorEndAddy - CursorStartAddy > 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 ###########################
|
||||
|
|
|
@ -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---------------------------------------
|
||||
|
|
Loading…
Reference in New Issue