diff options
Diffstat (limited to 'engines/macventure/macventure.cpp')
-rw-r--r-- | engines/macventure/macventure.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index 3b453563a6..2054c5eab6 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -42,6 +42,7 @@ MacVentureEngine::MacVentureEngine(OSystem *syst, const ADGameDescription *gameD _rnd = new Common::RandomSource("macventure"); _debugger= NULL; + _gui = NULL; debug("MacVenture::MacVentureEngine()"); } @@ -143,7 +144,7 @@ void MacVentureEngine::requestUnpause() { void MacVentureEngine::selectControl(ControlReference id) { ControlAction action = referenceToAction(id); - debug(7, "Select control %x", action); + debug(4, "Select control %x", action); _selectedControl = action; } @@ -154,7 +155,7 @@ void MacVentureEngine::activateCommand(ControlReference id) { _activeControl = kNoCommand; _activeControl = action; } - debug(7, "Activating Command %x... Command %x is active", action, _activeControl); + debug(4, "Activating Command %x... Command %x is active", action, _activeControl); } void MacVentureEngine::refreshReady() { @@ -213,7 +214,7 @@ void MacVentureEngine::processEvents() { } bool MacVenture::MacVentureEngine::runScriptEngine() { - debug(5, "MAIN: Running script engine"); + debug(4, "MAIN: Running script engine"); if (_haltedAtEnd) { _haltedAtEnd = false; if (_scriptEngine->resume()) { @@ -335,6 +336,14 @@ Common::String MacVentureEngine::getFilePath(FilePathID id) const { } } +bool MacVentureEngine::isOldText() const { + return _oldTextEncoding; +} + +const HuffmanLists * MacVentureEngine::getDecodingHuffman() const { + return _textHuffman; +} + // Data loading bool MacVentureEngine::loadGlobalSettings() { @@ -400,7 +409,7 @@ bool MacVentureEngine::loadTextHuffman() { // For some reason there are one lass mask than entries masks[i] = res->readUint16BE(); - uint8 *lengths = new uint8[numEntries]; + uint32 *lengths = new uint32[numEntries]; for (uint i = 0; i < numEntries; i++) lengths[i] = res->readByte(); @@ -408,8 +417,8 @@ bool MacVentureEngine::loadTextHuffman() { for (uint i = 0; i < numEntries; i++) values[i] = res->readByte(); - _textHuffman = new Common::Huffman(0, numEntries, masks, lengths, values); - debug(5, "Text is huffman-encoded"); + _textHuffman = new HuffmanLists(numEntries, lengths, masks, values); + debug(4, "Text is huffman-encoded"); return true; } return false; |