aboutsummaryrefslogtreecommitdiff
path: root/gui/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/debugger.cpp')
-rw-r--r--gui/debugger.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index 8c10154334..f113206ea1 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -30,6 +30,8 @@
#include "common/debug-channels.h"
#include "common/system.h"
+#include "engines/engine.h"
+
#include "gui/debugger.h"
#ifndef USE_TEXT_CONSOLE
#include "gui/console.h"
@@ -89,6 +91,14 @@ int Debugger::DebugPrintf(const char *format, ...) {
return count;
}
+void Debugger::preEnter() {
+ g_engine->pauseEngine(true);
+}
+
+void Debugger::postEnter() {
+ g_engine->pauseEngine(false);
+}
+
void Debugger::attach(const char *entry) {
g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);