Replaced Debugger Magic Number with DEBUG_EXIT_KEY
This commit is contained in:
parent
77bf241350
commit
a6a270a2d3
1 changed files with 2 additions and 4 deletions
|
@ -589,8 +589,7 @@ LRESULT CALLBACK FrameWndProc (HWND window,
|
||||||
SoundCore_SetFade(FADE_IN);
|
SoundCore_SetFade(FADE_IN);
|
||||||
break;
|
break;
|
||||||
case MODE_STEPPING:
|
case MODE_STEPPING:
|
||||||
// DebugProcessChar(TEXT('\x1B'));
|
DebuggerInputConsoleChar( DEBUG_EXIT_KEY );
|
||||||
DebuggerInputConsoleChar( TEXT('\x1B') ); // HACK: MAGIC #
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DrawStatusArea((HDC)0,DRAW_TITLE);
|
DrawStatusArea((HDC)0,DRAW_TITLE);
|
||||||
|
@ -889,8 +888,7 @@ void ProcessButtonClick (int button) {
|
||||||
if (mode == MODE_LOGO)
|
if (mode == MODE_LOGO)
|
||||||
ResetMachineState();
|
ResetMachineState();
|
||||||
if (mode == MODE_STEPPING)
|
if (mode == MODE_STEPPING)
|
||||||
// DebugProcessChar(TEXT('\x1B'));
|
DebuggerInputConsoleChar( DEBUG_EXIT_KEY );
|
||||||
DebuggerInputConsoleChar( TEXT('\x1B') ); // HACK: MAGIC #
|
|
||||||
else if (mode == MODE_DEBUG)
|
else if (mode == MODE_DEBUG)
|
||||||
ProcessButtonClick(BTN_RUN);
|
ProcessButtonClick(BTN_RUN);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue