diff options
author | Filippos Karapetis | 2012-12-11 02:56:48 +0200 |
---|---|---|
committer | Filippos Karapetis | 2012-12-11 02:56:48 +0200 |
commit | b05fa7f20414d6a7571a9ba52f542e527f598c62 (patch) | |
tree | a93459a6cf40000040167e3c6565b2fe1e1b39d8 /engines/tinsel/scn.cpp | |
parent | ce87175bede46c1bb938b73484e1db05212defbd (diff) | |
download | scummvm-rg350-b05fa7f20414d6a7571a9ba52f542e527f598c62.tar.gz scummvm-rg350-b05fa7f20414d6a7571a9ba52f542e527f598c62.tar.bz2 scummvm-rg350-b05fa7f20414d6a7571a9ba52f542e527f598c62.zip |
TINSEL: Add resource handling of the BE resources in DW1 Mac
This is the second attempt. All the BE resources of DW1 Mac are
handled correctly now. Added READ_16, READ_32, FROM_16, FROM_32 and
TO_32 to handle all of the different cases where endianess is
already handled. Note that the game scripts are LE, so these
haven't been changed
Diffstat (limited to 'engines/tinsel/scn.cpp')
-rw-r--r-- | engines/tinsel/scn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/scn.cpp b/engines/tinsel/scn.cpp index 168dcf464f..70093447ff 100644 --- a/engines/tinsel/scn.cpp +++ b/engines/tinsel/scn.cpp @@ -54,11 +54,11 @@ byte *FindChunk(SCNHANDLE handle, uint32 chunk) { chunk -= 0x2L; while (1) { - if (READ_LE_UINT32(lptr) == chunk) + if (READ_32(lptr) == chunk) return (byte *)(lptr + 2); ++lptr; - add = READ_LE_UINT32(lptr); + add = READ_32(lptr); if (!add) // End of file reached |