diff options
author | Borja Lorente | 2016-06-25 18:05:47 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:39:06 +0200 |
commit | 25f086e63b2b007ba03a47dcdab2426369edf01f (patch) | |
tree | bf18b90ad4fdb41fbe841bd54b2e89531f640040 | |
parent | 8dd52b6cce3835950f255f48d13f3d09a7dbe0ff (diff) | |
download | scummvm-rg350-25f086e63b2b007ba03a47dcdab2426369edf01f.tar.gz scummvm-rg350-25f086e63b2b007ba03a47dcdab2426369edf01f.tar.bz2 scummvm-rg350-25f086e63b2b007ba03a47dcdab2426369edf01f.zip |
MACVENTURE: Add a small hack for decoding
-rw-r--r-- | engines/macventure/text.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp index 79c3200146..d3fc956b93 100644 --- a/engines/macventure/text.cpp +++ b/engines/macventure/text.cpp @@ -159,7 +159,12 @@ void TextAsset::decodeHuffman() { _decoded.replace(_decoded.end() - 1, _decoded.end(), ""); } else { //Composite obj string ObjID embedId = stream.getBits(8); + uint pos = stream.pos(); // HACK, part 1 + _decoded.replace(_decoded.end(), _decoded.end(), getNoun(embedId)); + stream.rewind();// HACK, part 2 + stream.skip(pos); + // Another HACK, to get around that EOS char I insert at the end _decoded.replace(_decoded.end() - 1, _decoded.end(), ""); } |