diff options
author | Travis Howell | 2004-08-24 05:04:14 +0000 |
---|---|---|
committer | Travis Howell | 2004-08-24 05:04:14 +0000 |
commit | 07eb3f50f9038b31cf4bd75c514fa7297fcafb58 (patch) | |
tree | ba160658e9ea7a33d7df0e207c02abdabd8a0e5e /scumm/resource.cpp | |
parent | deeadc97fa0001a8013c29dae992a6f6323d995d (diff) | |
download | scummvm-rg350-07eb3f50f9038b31cf4bd75c514fa7297fcafb58.tar.gz scummvm-rg350-07eb3f50f9038b31cf4bd75c514fa7297fcafb58.tar.bz2 scummvm-rg350-07eb3f50f9038b31cf4bd75c514fa7297fcafb58.zip |
Correct bug in array loading from index.
A few changes/corrections for HE 7.2
svn-id: r14724
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index e4c3974ca0..ebe6caa3ca 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -987,6 +987,14 @@ int ScummEngine::readSoundResource(int type, int idx) { total_size = _fileHandle.readUint32BE(); _fileHandle.read(createResource(type, idx, total_size), total_size - 8); return 1; + } else if (basetag == MKID('TALK')) { + debugC(DEBUG_SOUND, "Found base tag TALK in sound %d, size %d", idx, total_size); + debugC(DEBUG_SOUND, "It was at position %d", _fileHandle.pos()); + + _fileHandle.seek(-12, SEEK_CUR); + total_size = _fileHandle.readUint32BE(); + _fileHandle.read(createResource(type, idx, total_size), total_size - 8); + return 1; } else if (basetag == MKID('DIGI')) { // Use in Putt-Putt Demo debugC(DEBUG_SOUND, "Found base tag DIGI in sound %d, size %d", idx, total_size); |