aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/strres.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-12-11 02:56:48 +0200
committerFilippos Karapetis2012-12-11 02:56:48 +0200
commitb05fa7f20414d6a7571a9ba52f542e527f598c62 (patch)
treea93459a6cf40000040167e3c6565b2fe1e1b39d8 /engines/tinsel/strres.cpp
parentce87175bede46c1bb938b73484e1db05212defbd (diff)
downloadscummvm-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/strres.cpp')
-rw-r--r--engines/tinsel/strres.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tinsel/strres.cpp b/engines/tinsel/strres.cpp
index 5a29a4d2cd..19a1ee94d6 100644
--- a/engines/tinsel/strres.cpp
+++ b/engines/tinsel/strres.cpp
@@ -165,15 +165,15 @@ static byte *FindStringBase(int id) {
// skip to the correct chunk
while (chunkSkip-- != 0) {
// make sure chunk id is correct
- assert(READ_LE_UINT32(pText + index) == CHUNK_STRING || READ_LE_UINT32(pText + index) == CHUNK_MBSTRING);
+ assert(READ_32(pText + index) == CHUNK_STRING || READ_32(pText + index) == CHUNK_MBSTRING);
- if (READ_LE_UINT32(pText + index + sizeof(uint32)) == 0) {
+ if (READ_32(pText + index + sizeof(uint32)) == 0) {
// string does not exist
return NULL;
}
// get index to next chunk
- index = READ_LE_UINT32(pText + index + sizeof(uint32));
+ index = READ_32(pText + index + sizeof(uint32));
}
// skip over chunk id and offset