diff options
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index b5584dfc3b..5aef1919f1 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -34,6 +34,7 @@ namespace Sci { extern EngineState *g_EngineState; +extern bool g_redirect_sciprintf_to_gui; class ConsoleFunc : public Common::Functor2<int, const char **, bool> { public: @@ -48,7 +49,10 @@ public: tmp += ' '; tmp += argv[i]; } + g_redirect_sciprintf_to_gui = true; con_parse(g_EngineState, tmp.c_str()); + sciprintf("\n"); + g_redirect_sciprintf_to_gui = false; return true; #else |