From 760f50f034b54d7e109692b4d5219560b065cf3a Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 12 May 2011 16:24:02 -0400 Subject: [PATCH] PEGASUS: Allow the console to be attached from the menu --- engines/pegasus/menu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engines/pegasus/menu.cpp b/engines/pegasus/menu.cpp index 98cf59af8f8e..dd32e36c0e99 100644 --- a/engines/pegasus/menu.cpp +++ b/engines/pegasus/menu.cpp @@ -23,6 +23,7 @@ #include "common/events.h" #include "common/textconsole.h" +#include "pegasus/console.h" #include "pegasus/pegasus.h" namespace Pegasus { @@ -91,6 +92,12 @@ void PegasusEngine::runMainMenu() { drawMenu(buttonSelected); } break; + case Common::KEYCODE_d: + if (event.kbd.flags & Common::KBD_CTRL) { + _console->attach(); + _console->onFrame(); + } + break; default: break; }