diff options
author | Filippos Karapetis | 2013-06-12 11:34:49 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-06-12 11:35:48 +0300 |
commit | 4c13725a55fed393188a008a6e95a28e0c9c74c8 (patch) | |
tree | 641ad7c996e2bc6fed63d65a47ea1d1922a8f91b /engines/neverhood/console.cpp | |
parent | 09b235e2bd2abf5d4f377e955a8252aed30fc3af (diff) | |
download | scummvm-rg350-4c13725a55fed393188a008a6e95a28e0c9c74c8.tar.gz scummvm-rg350-4c13725a55fed393188a008a6e95a28e0c9c74c8.tar.bz2 scummvm-rg350-4c13725a55fed393188a008a6e95a28e0c9c74c8.zip |
NEVERHOOD: Hook the dump vars debug code into a command, "dumpvars"
Also, did some minor cleanup of the console commands
(alphabetical reordering)
Diffstat (limited to 'engines/neverhood/console.cpp')
-rw-r--r-- | engines/neverhood/console.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/neverhood/console.cpp b/engines/neverhood/console.cpp index 8db62d8487..7b5add65c7 100644 --- a/engines/neverhood/console.cpp +++ b/engines/neverhood/console.cpp @@ -30,9 +30,10 @@ namespace Neverhood { Console::Console(NeverhoodEngine *vm) : GUI::Debugger(), _vm(vm) { + DCmd_Register("cheat", WRAP_METHOD(Console, Cmd_Cheat)); + DCmd_Register("dumpvars", WRAP_METHOD(Console, Cmd_Dumpvars)); DCmd_Register("room", WRAP_METHOD(Console, Cmd_Room)); DCmd_Register("surfaces", WRAP_METHOD(Console, Cmd_Surfaces)); - DCmd_Register("cheat", WRAP_METHOD(Console, Cmd_Cheat)); } Console::~Console() { @@ -75,8 +76,8 @@ bool Console::Cmd_Cheat(int argc, const char **argv) { DebugPrintf(" cannon - sets the correct cannon combination in module 3000, scene 8\n"); DebugPrintf(" dice - shows the correct dice combination in the teddy bear puzzle, module 1100, scene 6\n"); DebugPrintf(" memory - solves the memory puzzle, module 1400, scene 4\n"); - DebugPrintf(" radio - enables the radio, module 3000, scene 9 - same as pulling the rightmost cord in the flytrap room\n"); DebugPrintf(" music - shows the correct index in the radio music puzzle, module 2800, scene 1\n"); + DebugPrintf(" radio - enables the radio, module 3000, scene 9 - same as pulling the rightmost cord in the flytrap room\n"); DebugPrintf(" symbols - solves the symbols puzzle, module 1600, scene 8. Only available in that room\n"); DebugPrintf(" tubes - shows the correct test tube combination in module 2800, scenes 7 and 10, can be used anywhere\n"); return true; @@ -162,4 +163,10 @@ bool Console::Cmd_Cheat(int argc, const char **argv) { return true; } +bool Console::Cmd_Dumpvars(int argc, const char **argv) { + _vm->_gameVars->dumpVars(this); + + return true; +} + } // End of namespace Neverhood |