From 6527c01cb501958bc04117da3d965b956e77704c Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 13 Oct 2010 03:49:54 +0000 Subject: GOB: Add Debug Console. This allows interactive control of debug flags and variables and provides a base to allow for commands to aid in tracking down script bugs which are tricky to replicate. svn-id: r53398 --- engines/gob/util.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/gob/util.cpp') diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp index 00d8c2c9ac..9f0242f6d3 100644 --- a/engines/gob/util.cpp +++ b/engines/gob/util.cpp @@ -121,6 +121,10 @@ void Util::processInput(bool scroll) { _fastMode ^= 2; else if (event.kbd.keycode == Common::KEYCODE_p) _vm->pauseGame(); + else if (event.kbd.keycode == Common::KEYCODE_d) { + _vm->getDebugger()->attach(); + _vm->getDebugger()->onFrame(); + } break; } addKeyToBuffer(event.kbd); -- cgit v1.2.3