diff options
author | Martin Kiewitz | 2015-05-14 20:41:21 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-05-14 20:41:21 +0200 |
commit | 3183ef0854782fcdc8f7c0f32e4a0de4dc6e1c9a (patch) | |
tree | 30368c312557ad8750d515ddbbde50e208840e96 /engines/sci/console.cpp | |
parent | bfab4c4cbe3d857ef6a067440ea17baa8b30ec4d (diff) | |
download | scummvm-rg350-3183ef0854782fcdc8f7c0f32e4a0de4dc6e1c9a.tar.gz scummvm-rg350-3183ef0854782fcdc8f7c0f32e4a0de4dc6e1c9a.tar.bz2 scummvm-rg350-3183ef0854782fcdc8f7c0f32e4a0de4dc6e1c9a.zip |
SCI: add said-details to script_said debug cmd
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index c7069709d4..1e95393e4d 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2901,6 +2901,7 @@ bool Console::cmdScriptSaid(int argc, const char **argv) { void Console::printOffsets(int scriptNr, uint16 showType) { SegManager *segMan = _engine->_gamestate->_segMan; + Vocabulary *vocab = _engine->_vocabulary; SegmentId curSegmentNr; Common::List<SegmentId> segmentNrList; @@ -2935,6 +2936,7 @@ void Console::printOffsets(int scriptNr, uint16 showType) { reg_t objectPos; const char *objectNamePtr = NULL; const byte *stringPtr = NULL; + const byte *saidPtr = NULL; Common::List<SegmentId>::iterator it; const Common::List<SegmentId>::iterator end = segmentNrList.end(); @@ -2974,8 +2976,11 @@ void Console::printOffsets(int scriptNr, uint16 showType) { debugN(" %03d:%04x: '%s' (size %d)\n", arrayIterator->id, arrayIterator->offset, stringPtr, arrayIterator->stringSize); break; case SCI_SCR_OFFSET_TYPE_SAID: + saidPtr = curScriptData + arrayIterator->offset; debugPrintf(" %03d:%04x:\n", arrayIterator->id, arrayIterator->offset); - debugN(" %03d:%04x:\n", arrayIterator->id, arrayIterator->offset); + debugN(" %03d:%04x: ", arrayIterator->id, arrayIterator->offset); + vocab->debugDecipherSaidBlock(saidPtr); + debugN("\n"); break; default: break; |