diff options
author | Strangerke | 2017-01-24 23:52:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:27 +0100 |
commit | a8a142cfe4521bae210cc4a7c7b4891030d1de39 (patch) | |
tree | 73e41c576aacbb56a1f5e1a9709fd606664f9a93 /engines/cryo/cryolib.cpp | |
parent | 0e34cec17a6fbd8944c485929b6746e18ce56913 (diff) | |
download | scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.tar.gz scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.tar.bz2 scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.zip |
CRYO: Introduce debugger, remove console initialisation
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r-- | engines/cryo/cryolib.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp index e328417633..5b6befd697 100644 --- a/engines/cryo/cryolib.cpp +++ b/engines/cryo/cryolib.cpp @@ -274,7 +274,12 @@ void CryoEngine::pollEvents() { return; case Common::EVENT_KEYDOWN: - // _keyState[(byte)toupper(event.kbd.ascii)] = true; + // Check for debugger + if ((event.kbd.keycode == Common::KEYCODE_d) && (event.kbd.flags & Common::KBD_CTRL)) { + // Attach to the debugger + _debugger->attach(); + _debugger->onFrame(); + } return; case Common::EVENT_KEYUP: // _keyState[(byte)toupper(event.kbd.ascii)] = false; |