aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/console.cpp
diff options
context:
space:
mode:
authorStrangerke2013-09-29 22:19:12 +0200
committerStrangerke2013-09-29 22:19:12 +0200
commitbea6980529daed3ba02f02cacd459df61c463d0b (patch)
tree6b9f7201340dd5a1bf33f4d7b2c6f0747dc9cd30 /engines/avalanche/console.cpp
parent4464409d7378d82f255ff04c7d22c7b802d4b511 (diff)
downloadscummvm-rg350-bea6980529daed3ba02f02cacd459df61c463d0b.tar.gz
scummvm-rg350-bea6980529daed3ba02f02cacd459df61c463d0b.tar.bz2
scummvm-rg350-bea6980529daed3ba02f02cacd459df61c463d0b.zip
AVALANCHE: Move debug display of magic lines to debugger
Diffstat (limited to 'engines/avalanche/console.cpp')
-rw-r--r--engines/avalanche/console.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/engines/avalanche/console.cpp b/engines/avalanche/console.cpp
index 03f198fbf5..656cc1907c 100644
--- a/engines/avalanche/console.cpp
+++ b/engines/avalanche/console.cpp
@@ -30,10 +30,25 @@
namespace Avalanche {
- AvalancheConsole::AvalancheConsole(AvalancheEngine *vm) : GUI::Debugger(), _vm(vm) {
- }
+AvalancheConsole::AvalancheConsole(AvalancheEngine *vm) : GUI::Debugger(), _vm(vm) {
+ DCmd_Register("magic_lines", WRAP_METHOD(AvalancheConsole, Cmd_MagicLines));
+}
+
+AvalancheConsole::~AvalancheConsole() {
+}
- AvalancheConsole::~AvalancheConsole() {
+/**
+ * This command loads up the specified new scene number
+ */
+bool AvalancheConsole::Cmd_MagicLines(int argc, const char **argv) {
+ if (argc != 1) {
+ DebugPrintf("Usage: %s\n", argv[0]);
+ return true;
}
+ _vm->_showDebugLines = !_vm->_showDebugLines;
+ return false;
+}
+
+
} // End of namespace Avalanche