win32: add hotkey for ntview

This commit is contained in:
zeromus 2011-05-09 05:57:35 +00:00
parent 1c509ed632
commit c36da5bb50
3 changed files with 19 additions and 1 deletions

View File

@ -2809,6 +2809,11 @@ void UpdateMenuHotkeys()
combined = "&PPU Viewer...\t" + combo; combined = "&PPU Viewer...\t" + combo;
ChangeMenuItemText(MENU_PPUVIEWER, combined); ChangeMenuItemText(MENU_PPUVIEWER, combined);
//Open Nametable Viewer
combo = GetKeyComboName(FCEUD_CommandMapping[EMUCMD_TOOL_OPENNTVIEW]);
combined = "&Name table Viewer...\t" + combo;
ChangeMenuItemText(MENU_NAMETABLEVIEWER, combined);
//Open Hex editor //Open Hex editor
combo = GetKeyComboName(FCEUD_CommandMapping[EMUCMD_TOOL_OPENHEX]); combo = GetKeyComboName(FCEUD_CommandMapping[EMUCMD_TOOL_OPENHEX]);
combined = "&Hex Editor...\t" + combo; combined = "&Hex Editor...\t" + combo;

View File

@ -50,6 +50,7 @@
#include "drivers/win/tracer.h" #include "drivers/win/tracer.h"
#include "drivers/win/memview.h" #include "drivers/win/memview.h"
#include "drivers/win/window.h" #include "drivers/win/window.h"
#include "drivers/win/ntview.h"
#endif // WIN32 #endif // WIN32
//it is easier to declare these input drivers extern here than include a bunch of files //it is easier to declare these input drivers extern here than include a bunch of files
@ -623,6 +624,7 @@ static void LaunchMemoryWatch(void);
static void LaunchCheats(void); static void LaunchCheats(void);
static void LaunchDebugger(void); static void LaunchDebugger(void);
static void LaunchPPU(void); static void LaunchPPU(void);
static void LaunchNTView(void);
static void LaunchHex(void); static void LaunchHex(void);
static void LaunchTraceLogger(void); static void LaunchTraceLogger(void);
static void LaunchCodeDataLogger(void); static void LaunchCodeDataLogger(void);
@ -747,6 +749,7 @@ struct EMUCMDTABLE FCEUI_CommandTable[]=
{ EMUCMD_TOOL_OPENDEBUGGER, EMUCMDTYPE_TOOL, LaunchDebugger, 0, 0, "Open Debugger", 0}, { EMUCMD_TOOL_OPENDEBUGGER, EMUCMDTYPE_TOOL, LaunchDebugger, 0, 0, "Open Debugger", 0},
{ EMUCMD_TOOL_OPENHEX, EMUCMDTYPE_TOOL, LaunchHex, 0, 0, "Open Hex Editor", 0}, { EMUCMD_TOOL_OPENHEX, EMUCMDTYPE_TOOL, LaunchHex, 0, 0, "Open Hex Editor", 0},
{ EMUCMD_TOOL_OPENPPU, EMUCMDTYPE_TOOL, LaunchPPU, 0, 0, "Open PPU Viewer", 0}, { EMUCMD_TOOL_OPENPPU, EMUCMDTYPE_TOOL, LaunchPPU, 0, 0, "Open PPU Viewer", 0},
{ EMUCMD_TOOL_OPENNTVIEW, EMUCMDTYPE_TOOL, LaunchNTView, 0, 0, "Open Name Table Viewer", 0},
{ EMUCMD_TOOL_OPENTRACELOGGER, EMUCMDTYPE_TOOL, LaunchTraceLogger, 0, 0, "Open Trace Logger", 0}, { EMUCMD_TOOL_OPENTRACELOGGER, EMUCMDTYPE_TOOL, LaunchTraceLogger, 0, 0, "Open Trace Logger", 0},
{ EMUCMD_TOOL_OPENCDLOGGER, EMUCMDTYPE_TOOL, LaunchCodeDataLogger, 0, 0, "Open Code/Data Logger", 0}, { EMUCMD_TOOL_OPENCDLOGGER, EMUCMDTYPE_TOOL, LaunchCodeDataLogger, 0, 0, "Open Code/Data Logger", 0},
{ EMUCMD_FRAMEADV_SKIPLAG, EMUCMDTYPE_MISC, FA_SkipLag, 0, 0, "Frame Adv.-Skip Lag", 0}, { EMUCMD_FRAMEADV_SKIPLAG, EMUCMDTYPE_MISC, FA_SkipLag, 0, 0, "Frame Adv.-Skip Lag", 0},
@ -912,6 +915,13 @@ static void LaunchDebugger(void)
#endif #endif
} }
static void LaunchNTView(void)
{
#ifdef WIN32
DoNTView();
#endif
}
static void LaunchPPU(void) static void LaunchPPU(void)
{ {
#ifdef WIN32 #ifdef WIN32

View File

@ -228,6 +228,9 @@ enum EMUCMD
EMUCMD_TOOL_RAMSEARCHGTE, EMUCMD_TOOL_RAMSEARCHGTE,
EMUCMD_TOOL_RAMSEARCHEQ, EMUCMD_TOOL_RAMSEARCHEQ,
EMUCMD_TOOL_RAMSEARCHNE, EMUCMD_TOOL_RAMSEARCHNE,
//-----------------------------
//keep adding these in order of newness or else the hotkey binding configs will get messed up...
EMUCMD_TOOL_OPENNTVIEW,
EMUCMD_MAX EMUCMD_MAX
}; };