aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-24 11:59:19 +0000
committerMartin Kiewitz2010-04-24 11:59:19 +0000
commit666fefc79ddfbeb944b1c2e6fd7657528a78c12c (patch)
tree258429e6603d4e550b9fe2630f9e7c40f552e3be
parentb8a5507a17c456e9808a9b99a22c2dab7cd2c2a3 (diff)
downloadscummvm-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
-rw-r--r--engines/sci/resource.cpp2
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);