mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 03:18:17 +00:00
TONY: Fix resource loading on BE systems
Thanks to digitall for debugging and testing.
This commit is contained in:
parent
e782065591
commit
8df3c1458d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user