aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-11-12 00:28:00 +0100
committerWillem Jan Palenstijn2012-11-12 08:42:20 +0100
commit8df3c1458d8b44391258b16560c57a89479b8e35 (patch)
tree5d96ef7f1ffb5e45d2857a367930613774f840db
parente7820655915674fa744cbe819dd015c08a032677 (diff)
downloadscummvm-rg350-8df3c1458d8b44391258b16560c57a89479b8e35.tar.gz
scummvm-rg350-8df3c1458d8b44391258b16560c57a89479b8e35.tar.bz2
scummvm-rg350-8df3c1458d8b44391258b16560c57a89479b8e35.zip
TONY: Fix resource loading on BE systems
Thanks to digitall for debugging and testing.
-rw-r--r--engines/tony/mpal/mpal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index 1bb288edaf..1a24c5a576 100644
--- a/engines/tony/mpal/mpal.cpp
+++ b/engines/tony/mpal/mpal.cpp
@@ -1482,6 +1482,8 @@ bool mpalInit(const char *lpszMpcFileName, const char *lpszMprFileName,
lzo1x_decompress((const byte *)cmpbuf, dwSizeComp, (byte *)GLOBALS._lpResources, (uint32 *)&nBytesRead);
if (nBytesRead != (uint32)GLOBALS._nResources * 8)
return false;
+ for (int i = 0; i < 2*GLOBALS._nResources; ++i)
+ GLOBALS._lpResources[i] = FROM_LE_32(GLOBALS._lpResources[i]);
globalDestroy(cmpbuf);