aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/resource.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index be9dc63f10..085c1f3701 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -485,8 +485,8 @@ void Scumm::readResTypeList(int id, uint32 tag, const char *name) {
}
for (i = 0; i < num; i++) {
res.roomoffs[id][i] = _fileHandle.readUint16LE();
- if (roomoffs[id][i] == 0xFFFF)
- roomoffs[id][i] = 0xFFFFFFFF;
+ if (res.roomoffs[id][i] == 0xFFFF)
+ res.roomoffs[id][i] = 0xFFFFFFFF;
}
} else if (_features & GF_SMALL_HEADER) {
@@ -623,6 +623,9 @@ int Scumm::loadResource(int type, int idx) {
openRoom(roomNr);
_fileHandle.seek(fileOffs + _fileOffset, SEEK_SET);
+if (type == rtSound) {
+ printf("fileOffs = %d, _fileOffset = %d\n", fileOffs, _fileOffset);
+}
if (_features & GF_OLD_BUNDLE) {
size = _fileHandle.readUint16LE();
@@ -661,6 +664,10 @@ int Scumm::loadResource(int type, int idx) {
dumpResource("script-", idx, getResourceAddress(rtScript, idx));
}
+ if (type == rtSound) {
+ dumpResource("sound-", idx, getResourceAddress(rtScript, idx));
+ }
+
if (!_fileHandle.ioFailed()) {
return 1;
}