fixed M$VC++ warnings in text.cpp and added code to disk.cpp which may or may not fix graphics problems in hobbins' room on big endian systems (can't test that).
svn-id: r8830
This commit is contained in:
parent
001e7bb717
commit
2a334f176c
2 changed files with 12 additions and 3 deletions
11
sky/disk.cpp
11
sky/disk.cpp
|
@ -210,8 +210,17 @@ uint8 *SkyDisk::loadFile(uint16 fileNr, uint8 *dest) {
|
|||
|
||||
if (_fixedDest == NULL)
|
||||
free(_fileDest);
|
||||
} else
|
||||
} else {
|
||||
#ifdef SCUMM_BIG_ENDIAN
|
||||
if (!cflag) {
|
||||
warning("patching header for uncompressed file %d", fileNr);
|
||||
uint16 *headPtr = (uint16 *)_fileDest;
|
||||
for (uint i = 0; i < sizeof(struct dataFileHeader) / 2; i++)
|
||||
*(headPtr + i) = READ_LE_UINT16(headPtr + i);
|
||||
}
|
||||
#endif
|
||||
return _fileDest;
|
||||
}
|
||||
|
||||
return _compDest;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue