aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2016-04-30 13:04:21 -0500
committerColin Snover2016-05-25 12:36:53 -0500
commit79ddb9e605ecd4eca19aeadf2045f33f3130f480 (patch)
tree98a596b26bb19f5e55b2d1c536947c6e0517f12c /engines
parent32e7eec73de61ff8b287dfb8ff78724ff3540051 (diff)
downloadscummvm-rg350-79ddb9e605ecd4eca19aeadf2045f33f3130f480.tar.gz
scummvm-rg350-79ddb9e605ecd4eca19aeadf2045f33f3130f480.tar.bz2
scummvm-rg350-79ddb9e605ecd4eca19aeadf2045f33f3130f480.zip
SCI: Allow debugging output of all VM variables in one shot
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/console.cpp9
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) {