aboutsummaryrefslogtreecommitdiff
path: root/scumm/scummvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r--scumm/scummvm.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 437fda4a17..7b77c9a176 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -988,10 +988,8 @@ int Scumm::runDialog(Dialog *dialog)
void Scumm::pauseDialog()
{
- if (!_pauseDialog) {
+ if (!_pauseDialog)
_pauseDialog = new PauseDialog(_newgui, this);
- }
-
runDialog(_pauseDialog);
}
@@ -1002,6 +1000,13 @@ void Scumm::saveloadDialog()
runDialog(_saveLoadDialog);
}
+void Scumm::debuggerDialog()
+{
+ if (!_debuggerDialog)
+ _debuggerDialog = new DebuggerDialog(_newgui, this, _realWidth, _realHeight / 5);
+ runDialog(_debuggerDialog);
+}
+
void Scumm::optionsDialog()
{
if (!_optionsDialog)
@@ -1130,7 +1135,9 @@ void Scumm::processKbd()
_defaultTalkDelay = 5;
_vars[VAR_CHARINC] = _defaultTalkDelay / 20;
- }
+ } else if (_lastKeyHit == '~') { // Debug console
+ debuggerDialog();
+ }
_mouseButStat = _lastKeyHit;
}