From 25f086e63b2b007ba03a47dcdab2426369edf01f Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Sat, 25 Jun 2016 18:05:47 +0200 Subject: MACVENTURE: Add a small hack for decoding --- engines/macventure/text.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(), ""); } -- cgit v1.2.3