diff options
author | Filippos Karapetis | 2009-07-03 14:22:50 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-03 14:22:50 +0000 |
commit | 6fa8541aed68e72fd4f1cdeb13a46ec95547b275 (patch) | |
tree | 6d4fd58ddf8c42bb34ccf153273cb9e441e30534 /engines/sci/gfx/operations.cpp | |
parent | 69da51e71d71bb700a4e5e5419f64f482cb9fabc (diff) | |
download | scummvm-rg350-6fa8541aed68e72fd4f1cdeb13a46ec95547b275.tar.gz scummvm-rg350-6fa8541aed68e72fd4f1cdeb13a46ec95547b275.tar.bz2 scummvm-rg350-6fa8541aed68e72fd4f1cdeb13a46ec95547b275.zip |
- Pushed debugstate into debug.h
- When an error occurs, manipulate the execution stack before error() opens the console inside getDebugger(), like FreeSCI did. Added another method for obtaining the SCI console for use by the engine itself.
svn-id: r42062
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 7496c55868..82b5e78117 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1418,8 +1418,9 @@ static sci_event_t scummvm_get_event(GfxDriver *drv) { // Debug console if (ev.kbd.flags == Common::KBD_CTRL && ev.kbd.keycode == Common::KEYCODE_d) { // Open debug console - ((Sci::SciEngine*)g_engine)->getDebugger()->attach(); - ((Sci::SciEngine*)g_engine)->getDebugger()->onFrame(); + Console *con = ((Sci::SciEngine*)g_engine)->getSciDebugger(); + con->attach(); + con->onFrame(); // Clear keyboard event input.type = SCI_EVT_NONE; |