aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/tools.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-07-03 14:22:50 +0000
committerFilippos Karapetis2009-07-03 14:22:50 +0000
commit6fa8541aed68e72fd4f1cdeb13a46ec95547b275 (patch)
tree6d4fd58ddf8c42bb34ccf153273cb9e441e30534 /engines/sci/tools.cpp
parent69da51e71d71bb700a4e5e5419f64f482cb9fabc (diff)
downloadscummvm-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/tools.cpp')
-rw-r--r--engines/sci/tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/tools.cpp b/engines/sci/tools.cpp
index 589ce298d7..d0e11aca09 100644
--- a/engines/sci/tools.cpp
+++ b/engines/sci/tools.cpp
@@ -70,7 +70,7 @@ void sciprintf(const char *fmt, ...) {
// Display the result suitably
if (g_redirect_sciprintf_to_gui)
- ((SciEngine *)g_engine)->getDebugger()->DebugPrintf("%s", buf);
+ ((SciEngine *)g_engine)->getSciDebugger()->DebugPrintf("%s", buf);
printf("%s", buf);
free(buf);