diff options
author | Colin Snover | 2016-12-18 21:18:23 -0600 |
---|---|---|
committer | Colin Snover | 2016-12-19 12:47:48 -0600 |
commit | 20c211192dcdff42189cc6c3fbe948beb65c1e8e (patch) | |
tree | f376653eed138305e6914ef2edff8d735f30475d /engines/sci/console.cpp | |
parent | 8637cfc617d57bb9ea1e3f81f16c7b4f9f5b38ee (diff) | |
download | scummvm-rg350-20c211192dcdff42189cc6c3fbe948beb65c1e8e.tar.gz scummvm-rg350-20c211192dcdff42189cc6c3fbe948beb65c1e8e.tar.bz2 scummvm-rg350-20c211192dcdff42189cc6c3fbe948beb65c1e8e.zip |
SCI32: Add segment table debugging info for SCI32 arrays
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 63a1f0c2ec..412dfaf184 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2213,9 +2213,16 @@ bool Console::segmentInfo(int nr) { break; #ifdef ENABLE_SCI32 - case SEG_TYPE_ARRAY: + case SEG_TYPE_ARRAY: { + ArrayTable &table = *(ArrayTable *)mobj; debugPrintf("SCI32 arrays\n"); + for (uint i = 0; i < table.size(); ++i) { + if (table.isValidEntry(i)) { + debugPrintf(" [%04x] %s\n", i, table[i].toDebugString().c_str()); + } + } break; + } case SEG_TYPE_BITMAP: { BitmapTable &table = *(BitmapTable *)mobj; |