diff options
author | David Turner | 2010-10-13 03:49:54 +0000 |
---|---|---|
committer | David Turner | 2010-10-13 03:49:54 +0000 |
commit | 6527c01cb501958bc04117da3d965b956e77704c (patch) | |
tree | 3987ebb9fe7e91cc27882bba3f92d7e39eec7217 /engines/gob/util.cpp | |
parent | 07abe3d6038de672d82446b7a2d289977cd972fb (diff) | |
download | scummvm-rg350-6527c01cb501958bc04117da3d965b956e77704c.tar.gz scummvm-rg350-6527c01cb501958bc04117da3d965b956e77704c.tar.bz2 scummvm-rg350-6527c01cb501958bc04117da3d965b956e77704c.zip |
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
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r-- | engines/gob/util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |