[ scummvm-Bugs-2739122 ] SCI: Resource Offset Endian Problem
SourceForge.net
noreply at sourceforge.net
Tue Apr 7 02:47:17 CEST 2009
Bugs item #2739122, was opened at 2009-04-06 19:47
Message generated for change (Tracker Item Submitted) made by mthreepwood
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2739122&group_id=37116
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unknown Crash/Other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: clone2727 (mthreepwood)
Assigned to: Nobody/Anonymous (nobody)
Summary: SCI: Resource Offset Endian Problem
Initial Comment:
I attempted to play SQ4 CD on my Mac OS X (10.4, PPC) with the latest trunk and I had some problems with the game's startup. I got io failed errors, which seemed abnormal to me. Searching a bit more, I found that the offset is read in with no regards to endianness.
Line 999, sci/scicore/resource.cpp:
file.read(&off, nEntrySize - 2);
In this game, nEntrySize - 2 == 3. Reading it in in LE order fixes this problem (until the game crashes soon after for other reasons :P). However, I'm not sure what size can appear here so I don't want to commit a fix myself.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2739122&group_id=37116
More information about the Scummvm-tracker
mailing list