mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
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:
parent
6fef5f77ad
commit
dbff83a88b
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user