[Scummvm-cvs-logs] SF.net SVN: scummvm:[48780] scummvm/trunk/engines/sci/resource.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sat Apr 24 13:59:20 CEST 2010
Revision: 48780
http://scummvm.svn.sourceforge.net/scummvm/?rev=48780&view=rev
Author: m_kiewitz
Date: 2010-04-24 11:59:19 +0000 (Sat, 24 Apr 2010)
Log Message:
-----------
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
Modified Paths:
--------------
scummvm/trunk/engines/sci/resource.cpp
Modified: scummvm/trunk/engines/sci/resource.cpp
===================================================================
--- scummvm/trunk/engines/sci/resource.cpp 2010-04-23 21:57:29 UTC (rev 48779)
+++ scummvm/trunk/engines/sci/resource.cpp 2010-04-24 11:59:19 UTC (rev 48780)
@@ -169,7 +169,7 @@
}
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list