[Scummvm-cvs-logs] scummvm master -> 8df3c1458d8b44391258b16560c57a89479b8e35

wjp wjp at usecode.org
Mon Nov 12 08:43:28 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8df3c1458d TONY: Fix resource loading on BE systems


Commit: 8df3c1458d8b44391258b16560c57a89479b8e35
    https://github.com/scummvm/scummvm/commit/8df3c1458d8b44391258b16560c57a89479b8e35
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2012-11-11T23:42:20-08:00

Commit Message:
TONY: Fix resource loading on BE systems

Thanks to digitall for debugging and testing.

Changed paths:
    engines/tony/mpal/mpal.cpp



diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index 1bb288e..1a24c5a 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);
 






More information about the Scummvm-git-logs mailing list