diff options
Diffstat (limited to 'engines/sci')
| -rw-r--r-- | engines/sci/console.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/parser/vocabulary.cpp | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index deab3dadd8..0dac0729cc 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -761,7 +761,7 @@ bool Console::cmdHexgrep(int argc, const char **argv) { if (argc < 4) { DebugPrintf("Searches some resources for a particular sequence of bytes, represented as hexadecimal numbers.\n"); DebugPrintf("Usage: %s <resource type> <resource number> <search string>\n", argv[0]); - DebugPrintf("<resource number> can be a specific resource number, or \"all\" for all of the resources of the specified type\n", argv[0]); + DebugPrintf("<resource number> can be a specific resource number, or \"all\" for all of the resources of the specified type\n"); DebugPrintf("EXAMPLES:\n hexgrep script all e8 03 c8 00\n hexgrep pic 042 fe"); cmdResourceTypes(argc, argv); return true; diff --git a/engines/sci/parser/vocabulary.cpp b/engines/sci/parser/vocabulary.cpp index f9989b22a8..3e35bd652a 100644 --- a/engines/sci/parser/vocabulary.cpp +++ b/engines/sci/parser/vocabulary.cpp @@ -673,9 +673,15 @@ void Vocabulary::printParserNodes(int num) { con->DebugPrintf(" Node %03x: ", i); if (_parserNodes[i].type == kParseTreeLeafNode) con->DebugPrintf("Leaf: %04x\n", _parserNodes[i].value); - else - con->DebugPrintf("Branch: ->%04x, ->%04x\n", _parserNodes[i].left, - _parserNodes[i].right); + else { + // FIXME: Do we really want to print the *addresses* + // of the left & right child? + // Note that one or both may be zero pointers, so we can't just + // print their values. + con->DebugPrintf("Branch: ->%p, ->%p\n", + (const void *)_parserNodes[i].left, + (const void *)_parserNodes[i].right); + } } } |
