diff options
author | Strangerke | 2018-04-19 07:15:14 +0200 |
---|---|---|
committer | Strangerke | 2018-04-19 07:33:29 +0200 |
commit | 637f4c5c00d03b1beeb969ca4eb65753e6d7806d (patch) | |
tree | aa7120f9815d93302feb46cc3b5c5c6f02b20443 /engines/lilliput/sound.cpp | |
parent | da79ac1d4212f0fb56e2cd5f310ab1e9bd879ff6 (diff) | |
download | scummvm-rg350-637f4c5c00d03b1beeb969ca4eb65753e6d7806d.tar.gz scummvm-rg350-637f4c5c00d03b1beeb969ca4eb65753e6d7806d.tar.bz2 scummvm-rg350-637f4c5c00d03b1beeb969ca4eb65753e6d7806d.zip |
LILLIPUT: Fix second compression method in MUS extraction code
Diffstat (limited to 'engines/lilliput/sound.cpp')
-rw-r--r-- | engines/lilliput/sound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lilliput/sound.cpp b/engines/lilliput/sound.cpp index 6ea5ab985a..55624e74b1 100644 --- a/engines/lilliput/sound.cpp +++ b/engines/lilliput/sound.cpp @@ -46,8 +46,8 @@ byte LilliputSound::readByte(const byte *data, uint32 offset) { return data[1 + (offset & 1) + (al << 1)]; } -uint32 LilliputSound::decode(const byte *src, byte *dst, uint32 len) { - uint32 i = 0; +uint32 LilliputSound::decode(const byte *src, byte *dst, uint32 len, uint32 start) { + uint32 i = start; for (; i < len; ++i) { *dst++ = readByte(src, i); } @@ -82,7 +82,7 @@ void LilliputSound::loadMusic(Common::String filename) { int shift = (srcBuf[0] == 'c') ? 1 : 0; _unpackedSizes[i] = (1 + packedSize - 0x201) * 2 - shift; byte *dstBuf = new byte[_unpackedSizes[i]]; - decode(srcBuf + shift, dstBuf, _unpackedSizes[i]); + decode(srcBuf, dstBuf, _unpackedSizes[i], shift); _unpackedFiles[i] = dstBuf; } else { _unpackedSizes[i] = packedSize; |