Added Cheat Console again.

This commit is contained in:
rheiny 2007-02-10 14:48:52 +00:00
parent c4d9cfe679
commit 652c36be53
3 changed files with 17 additions and 7 deletions

Binary file not shown.

View File

@ -183,6 +183,8 @@
#define MENU_HOTKEYS 40045
#define MENU_ABOUT 40046
#define MENU_MSGLOG 40047
#define MENU_CHEATS 40048
#define MENU_BASIC_BOT 40049
#define ID_DEBUG_DEBUGGER 40053
#define ID_DEBUG_PPUVIEWER 40054
#define ID_DEBUG_NAMETABLEVIEWER 40055
@ -199,8 +201,8 @@
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40048
#define _APS_NEXT_RESOURCE_VALUE 105
#define _APS_NEXT_COMMAND_VALUE 40050
#define _APS_NEXT_CONTROL_VALUE 1117
#define _APS_NEXT_SYMED_VALUE 101
#endif

View File

@ -130,7 +130,7 @@ void RedoMenuGI(FCEUGI *gi)
else
#endif
#ifndef _USE_SHARED_MEMORY_
if(simpled[x] == 40002 || simpled[x] == 40003)
if(simpled[x] == MENU_BASIC_BOT || simpled[x] == 40003)
EnableMenuItem(fceumenu,simpled[x],MF_BYCOMMAND| MF_GRAYED);
else
#endif
@ -841,10 +841,18 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
SetMainWindowStuff();
break;
case 40003: FCEU_SetBotMode(1^FCEU_BotMode());
UpdateCheckedMenuItems(); break;
case 40002: CreateBasicBot();break;
// case 40028: DoMemmo(0); break; //mbg merge 7/18/06 removed as part of old debugger
case MENU_CHEATS:
ConfigCheats(hWnd);
break;
case 40003:
FCEU_SetBotMode(1^FCEU_BotMode());
UpdateCheckedMenuItems();
break;
case MENU_BASIC_BOT:
CreateBasicBot();
break;
case MENU_DIRECTORIES:
// Directories menu was selected