aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource_v4.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-10 13:16:49 +0000
committerMax Horn2005-04-10 13:16:49 +0000
commit0553720ca0cf56b5d755bd824a7f0afd79db3060 (patch)
tree8c202bb09027cc26e0a14c42c644b8460bc30cee /scumm/resource_v4.cpp
parent232860bc44f6fc6706e554288992483ce0966918 (diff)
downloadscummvm-rg350-0553720ca0cf56b5d755bd824a7f0afd79db3060.tar.gz
scummvm-rg350-0553720ca0cf56b5d755bd824a7f0afd79db3060.tar.bz2
scummvm-rg350-0553720ca0cf56b5d755bd824a7f0afd79db3060.zip
Read the RNAM data (might be useful for debugging)
svn-id: r17510
Diffstat (limited to 'scumm/resource_v4.cpp')
-rw-r--r--scumm/resource_v4.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/scumm/resource_v4.cpp b/scumm/resource_v4.cpp
index afcb39a7e8..a17b0ef7eb 100644
--- a/scumm/resource_v4.cpp
+++ b/scumm/resource_v4.cpp
@@ -87,9 +87,15 @@ void ScummEngine_v4::readIndexFile() {
switch (blocktype) {
case 0x4E52: // 'NR'
- // Names of rooms. Maybe we should read them and put them
- // into a table, for use by the debugger?
- _fileHandle->seek(itemsize - 6, SEEK_CUR);
+ // Names of rooms. Maybe we should put them into a table, for use by the debugger?
+ for (int room; (room = _fileHandle->readByte()); ) {
+ char buf[10];
+ _fileHandle->read(buf, 9);
+ buf[9] = 0;
+ for (int i = 0; i < 9; i++)
+ buf[i] ^= 0xFF;
+ debug(5, "Room %d: '%s'\n", room, buf);
+ }
break;
case 0x5230: // 'R0'