diff options
author | Sven Hesse | 2009-06-23 01:20:21 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-23 01:20:21 +0000 |
commit | 8e63d7989f83877e63ee189693470eb2f61ecce5 (patch) | |
tree | cd216cbd2e489b7993f3e5c2e142876f7339dd46 /engines/gob/game_v1.cpp | |
parent | ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b (diff) | |
download | scummvm-rg350-8e63d7989f83877e63ee189693470eb2f61ecce5.tar.gz scummvm-rg350-8e63d7989f83877e63ee189693470eb2f61ecce5.tar.bz2 scummvm-rg350-8e63d7989f83877e63ee189693470eb2f61ecce5.zip |
Added Script::getTextsOffset()
svn-id: r41792
Diffstat (limited to 'engines/gob/game_v1.cpp')
-rw-r--r-- | engines/gob/game_v1.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/gob/game_v1.cpp b/engines/gob/game_v1.cpp index 725ee6d8ff..60b922e530 100644 --- a/engines/gob/game_v1.cpp +++ b/engines/gob/game_v1.cpp @@ -121,15 +121,12 @@ void Game_v1::playTot(int16 skipPlay) { debugC(4, kDebugFileIO, "IMA: %s", _curImaFile); debugC(4, kDebugFileIO, "EXT: %s", _curExtFile); - byte *filePtr = _script->getData() + 0x30; - _totTextData = 0; - if (READ_LE_UINT32(filePtr) != (uint32) -1) { + if (_script->getTextsOffset() != ((uint32) -1)) { _totTextData = new TotTextTable; - _totTextData->dataPtr = - (_script->getData() + READ_LE_UINT32(_script->getData() + 0x30)); + _totTextData->dataPtr = _script->getData() + _script->getTextsOffset(); Common::MemoryReadStream totTextData(_totTextData->dataPtr, - 4294967295U); + _script->getSize() - _script->getTextsOffset()); _totTextData->itemsCount = totTextData.readSint16LE(); @@ -140,7 +137,7 @@ void Game_v1::playTot(int16 skipPlay) { } } - filePtr = _script->getData() + 0x34; + byte *filePtr = _script->getData() + 0x34; _totResourceTable = 0; if (READ_LE_UINT32(filePtr) != (uint32) -1) { _totResourceTable = new TotResTable; |