diff options
author | Strangerke | 2013-09-29 22:19:12 +0200 |
---|---|---|
committer | Strangerke | 2013-09-29 22:19:12 +0200 |
commit | bea6980529daed3ba02f02cacd459df61c463d0b (patch) | |
tree | 6b9f7201340dd5a1bf33f4d7b2c6f0747dc9cd30 /engines/avalanche/console.cpp | |
parent | 4464409d7378d82f255ff04c7d22c7b802d4b511 (diff) | |
download | scummvm-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.cpp | 21 |
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 |