diff options
author | Martin Kiewitz | 2010-04-24 11:59:19 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-24 11:59:19 +0000 |
commit | 666fefc79ddfbeb944b1c2e6fd7657528a78c12c (patch) | |
tree | 258429e6603d4e550b9fe2630f9e7c40f552e3be /engines | |
parent | b8a5507a17c456e9808a9b99a22c2dab7cd2c2a3 (diff) | |
download | scummvm-rg350-666fefc79ddfbeb944b1c2e6fd7657528a78c12c.tar.gz scummvm-rg350-666fefc79ddfbeb944b1c2e6fd7657528a78c12c.tar.bz2 scummvm-rg350-666fefc79ddfbeb944b1c2e6fd7657528a78c12c.zip |
SCI: first byte of resource patch must have 0x80 added to the resource type, otherwise sierra sci0+ interpreter won't accept the file, fixing this on debug export function
svn-id: r48780
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 16f84e1070..eee7ba3a47 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -169,7 +169,7 @@ void Resource::unalloc() { } void Resource::writeToStream(Common::WriteStream *stream) const { - stream->writeByte(_id.type); + stream->writeByte(_id.type | 0x80); // 0x80 is required by old sierra sci, otherwise it wont accept the patch file stream->writeByte(_headerSize); if (_headerSize > 0) stream->write(_header, _headerSize); |