SCI: Resource Offset Endian Problem
|Reported by:||SF/mthreepwood||Owned by:||wjp|
|Game:||Space Quest 4|
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.
Ticket imported from: #2739122. Ticket imported from: bugs/4298.