diff options
author | Colin Snover | 2016-04-30 13:04:21 -0500 |
---|---|---|
committer | Colin Snover | 2016-05-25 12:36:53 -0500 |
commit | 79ddb9e605ecd4eca19aeadf2045f33f3130f480 (patch) | |
tree | 98a596b26bb19f5e55b2d1c536947c6e0517f12c | |
parent | 32e7eec73de61ff8b287dfb8ff78724ff3540051 (diff) | |
download | scummvm-rg350-79ddb9e605ecd4eca19aeadf2045f33f3130f480.tar.gz scummvm-rg350-79ddb9e605ecd4eca19aeadf2045f33f3130f480.tar.bz2 scummvm-rg350-79ddb9e605ecd4eca19aeadf2045f33f3130f480.zip |
SCI: Allow debugging output of all VM variables in one shot
-rw-r--r-- | engines/sci/console.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 1661f92cfe..51fb52bb21 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2565,9 +2565,14 @@ bool Console::cmdVMVars(int argc, const char **argv) { case 1: case 2: case 3: { - // for global, local, temp and param, we need an index if (argc < 3) { - debugPrintf("Variable number must be specified for requested type\n"); + for (int i = 0; i < s->variablesMax[varType]; ++i) { + curValue = &s->variables[varType][i]; + debugPrintf("%s var %d == %04x:%04x", varNames[varType], i, PRINT_REG(*curValue)); + printBasicVarInfo(*curValue); + debugPrintf("\n"); + } + return true; } if (argc > 4) { |