[Scummvm-cvs-logs] scummvm master -> 79ddb9e605ecd4eca19aeadf2045f33f3130f480
csnover
csnover at users.noreply.github.com
Wed May 25 20:05:08 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
79ddb9e605 SCI: Allow debugging output of all VM variables in one shot
Commit: 79ddb9e605ecd4eca19aeadf2045f33f3130f480
https://github.com/scummvm/scummvm/commit/79ddb9e605ecd4eca19aeadf2045f33f3130f480
Author: Colin Snover (github.com at zetafleet.com)
Date: 2016-05-25T12:36:53-05:00
Commit Message:
SCI: Allow debugging output of all VM variables in one shot
Changed paths:
engines/sci/console.cpp
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 1661f92..51fb52b 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) {
More information about the Scummvm-git-logs
mailing list