fixed resource loading in GF_OLD_BUNDLE games (res header = 2 bytes length, plus 2 unknown bytes)

svn-id: r6976
This commit is contained in:
Max Horn 2003-04-11 22:15:59 +00:00
parent 6fef5f77ad
commit dbff83a88b
2 changed files with 2 additions and 1 deletions

View File

@ -568,6 +568,7 @@ int Scumm::loadResource(int type, int idx) {
if (_features & GF_OLD_BUNDLE) {
size = _fileHandle.readUint16LE();
_fileHandle.seek(-2, SEEK_CUR);
} else if (_features & GF_SMALL_HEADER) {
if (!(_features & GF_SMALL_NAMES))
_fileHandle.seek(8, SEEK_CUR);

View File

@ -1719,7 +1719,7 @@ void Scumm::launch() {
}
if (_features & GF_OLD_BUNDLE)
_resourceHeaderSize = 2; // FIXME - to be rechecked
_resourceHeaderSize = 4; // FIXME - to be rechecked
else if (_features & GF_SMALL_HEADER)
_resourceHeaderSize = 6;
else