From e82d975b54f05521ae75e358bcb648924a718743 Mon Sep 17 00:00:00 2001 From: OV2 Date: Sat, 2 Oct 2010 00:56:07 +0200 Subject: [PATCH] Remove language menu and restore debugger Language menu is useless as english is the only option in it. Localization needs a new approach... Win32 port compiles again with DEBUGGER set (snes9x-rr) --- win32/rsrc/resource.h | 5 -- win32/rsrc/snes9x.rc | 14 +++--- win32/snes9xw.vcproj | 107 ++---------------------------------------- win32/win32.cpp | 4 +- win32/wsnes9x.cpp | 58 +++++++---------------- 5 files changed, 29 insertions(+), 159 deletions(-) diff --git a/win32/rsrc/resource.h b/win32/rsrc/resource.h index c844e575..0cf2eab6 100644 --- a/win32/rsrc/resource.h +++ b/win32/rsrc/resource.h @@ -353,8 +353,6 @@ #define IDC_SHADER_GLSL_VERTEX_BROWSE 3018 #define IDC_SHADER_GLSL_FRAGMENT_BROWSE 3019 #define ID_FILE_EXIT 40001 -#define ID_LANGUAGE_ENGLISH 40002 -#define ID_LANGUAGE_NEDERLANDS 40003 #define ID_WINDOW_HIDEMENUBAR 40004 #define ID_FILE_AVI_RECORDING 40005 #define ID_SOUND_NOSOUND 40021 @@ -400,9 +398,6 @@ #define ID_OPTIONS_EMULATION 40069 #define ID_OPTIONS_SETTINGS 40070 #define ID_DEBUG_TRACE 40071 -#define ID_DEBUG_TRACE_SPC 40072 -#define ID_DEBUG_TRACE_SA1 40073 -#define ID_DEBUG_TRACE_DSP1 40074 #define ID_DEBUG_FRAME_ADVANCE 40075 #define ID_DEBUG_SNES_STATUS 40076 #define ID_NETPLAY_SERVER 40077 diff --git a/win32/rsrc/snes9x.rc b/win32/rsrc/snes9x.rc index f97e548e..7b3a1d1e 100644 --- a/win32/rsrc/snes9x.rc +++ b/win32/rsrc/snes9x.rc @@ -948,12 +948,6 @@ BEGIN MENUITEM "&Stretch Image\tAlt+Backspace", 40032 MENUITEM "&Maintain Aspect Ratio", 40123 MENUITEM "&Bilinear Filtering", ID_WINDOW_VIDMEM - MENUITEM SEPARATOR - POPUP "&Language" - BEGIN - MENUITEM "&English", ID_LANGUAGE_ENGLISH, CHECKED - MENUITEM "&Nederlands", ID_LANGUAGE_NEDERLANDS, GRAYED - END END POPUP "&Cheat" BEGIN @@ -975,6 +969,14 @@ BEGIN MENUITEM SEPARATOR MENUITEM "&Options...", ID_NETPLAY_OPTIONS END +#ifdef DEBUGGER + POPUP "&Debug" + BEGIN + MENUITEM "&Trace", ID_DEBUG_TRACE + MENUITEM "&Frame Advance", ID_DEBUG_FRAME_ADVANCE + MENUITEM "View SNES &Status", ID_DEBUG_SNES_STATUS + END +#endif POPUP "&Help" BEGIN MENUITEM "&About...", ID_HELP_ABOUT diff --git a/win32/snes9xw.vcproj b/win32/snes9xw.vcproj index bf58e57a..a72a1263 100644 --- a/win32/snes9xw.vcproj +++ b/win32/snes9xw.vcproj @@ -383,13 +383,13 @@ /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -