comments and menu label change

This commit is contained in:
warmCabin 2021-08-11 04:04:46 -04:00
parent a9205eac4a
commit 5f368afdde
2 changed files with 3 additions and 7 deletions

View File

@ -41,9 +41,6 @@
#include "assembler.h"
#include "patcher.h"
#include "dumper.h"
// ################################## Start of SP CODE ###########################
#include "debuggersp.h"
extern Name* pageNames[32];
@ -52,8 +49,6 @@ extern bool ramBankNamesLoaded;
extern int pageNumbersLoaded[32];
extern int myNumWPs;
// ################################## End of SP CODE ###########################
extern int vblankScanLines;
extern int vblankPixel;
extern bool DebuggerWasUpdated;
@ -583,7 +578,7 @@ void HighlightSyntax(HWND hWnd, int lines)
SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETCHARFORMAT, (WPARAM)SCF_SELECTION, (LPARAM)PPCF(DbgComm));
else
{
if (debug_wstr[opbreak] == L'-')
if (debug_wstr[opbreak] == L'-') // TODO: Gets confused if dashes in label name!
SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETCHARFORMAT, (WPARAM)SCF_SELECTION,
(LPARAM)PPCF(DbgRts));
else
@ -1803,6 +1798,7 @@ void DebuggerInitDialog(HWND hwndDlg)
UpdateSymbolsPopup(symbolsPopup = GetSubMenu(hdbgmenu, MENU_SYMBOLS_POS));
UpdateToolsPopup(toolsPopup = GetSubMenu(hdbgmenu, MENU_TOOLS_POS));
// Preprocessor nonsense to dynamically generate the colors menu
HMENU hcolorpopupmenu = GetSubMenu(optionsPopup, MENU_OPTIONS_COLORS_POS);
for (int i = 0; i < sizeof(dbgcolormenu) / sizeof(DBGCOLORMENU); ++i)
InsertColorMenu(hwndDlg, hcolorpopupmenu, &dbgcolormenu[i].menu, i, ID_COLOR_DEBUGGER + i);

View File

@ -3037,7 +3037,7 @@ BEGIN
BEGIN
MENUITEM "Auto Open on ROM Load", ID_DEBUGGER_AUTO_OPEN, CHECKED
MENUITEM SEPARATOR
POPUP "Colors..."
POPUP "Syntax Highlighting"
BEGIN
MENUITEM SEPARATOR
MENUITEM "Restore Defaults", ID_DEBUGGER_DEFCOLOR