diff options
author | Sven Hesse | 2009-06-23 01:21:06 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-23 01:21:06 +0000 |
commit | 43923e8b333e97116c481d4ce266bb08c37bc195 (patch) | |
tree | 22999d3abb68f2634c44dbfa8a55a6022f579d8a /engines/gob/game_v2.cpp | |
parent | 8e63d7989f83877e63ee189693470eb2f61ecce5 (diff) | |
download | scummvm-rg350-43923e8b333e97116c481d4ce266bb08c37bc195.tar.gz scummvm-rg350-43923e8b333e97116c481d4ce266bb08c37bc195.tar.bz2 scummvm-rg350-43923e8b333e97116c481d4ce266bb08c37bc195.zip |
Added Script::getResourcesOffset()
svn-id: r41793
Diffstat (limited to 'engines/gob/game_v2.cpp')
-rw-r--r-- | engines/gob/game_v2.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/gob/game_v2.cpp b/engines/gob/game_v2.cpp index 4ad710d854..3c72172124 100644 --- a/engines/gob/game_v2.cpp +++ b/engines/gob/game_v2.cpp @@ -55,7 +55,6 @@ void Game_v2::playTot(int16 skipPlay) { int16 _captureCounter; int16 breakFrom; int16 nestLevel; - byte *filePtr; bool totTextLoc; oldNestLevel = _vm->_inter->_nestLevel; @@ -157,15 +156,13 @@ void Game_v2::playTot(int16 skipPlay) { } } - filePtr = _script->getData() + 0x34; _totResourceTable = 0; int32 resSize; - if (READ_LE_UINT32(filePtr) != (uint32) -1) { + if (_script->getResourcesOffset() != ((uint32) -1)) { _totResourceTable = new TotResTable; - _totResourceTable->dataPtr = - _script->getData() + READ_LE_UINT32(_script->getData() + 0x34); + _totResourceTable->dataPtr = _script->getData() + _script->getResourcesOffset(); Common::MemoryReadStream totResTable(_totResourceTable->dataPtr, - 4294967295U); + _script->getSize() - _script->getResourcesOffset()); _totResourceTable->itemsCount = totResTable.readSint16LE(); resSize = _totResourceTable->itemsCount * szGame_TotResItem + szGame_TotResTable; |