From 8df3c1458d8b44391258b16560c57a89479b8e35 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 12 Nov 2012 00:28:00 +0100 Subject: TONY: Fix resource loading on BE systems Thanks to digitall for debugging and testing. --- engines/tony/mpal/mpal.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3