Ticket #6176: tony_be.patch

File tony_be.patch, 581 bytes (added by digitall, 12 years ago)

Patch for initial BE assertion from wjp

  • engines/tony/mpal/mpal.cpp

    diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
    index 8d83363..8cd7602 100644
    a b bool mpalInit(const char *lpszMpcFileName, const char *lpszMprFileName,  
    15021502        lzo1x_decompress((const byte *)cmpbuf, dwSizeComp, (byte *)GLOBALS._lpResources, (uint32 *)&nBytesRead);
    15031503        if (nBytesRead != (uint32)GLOBALS._nResources * 8)
    15041504                return false;
     1505        for (int i = 0; i < 2*GLOBALS._nResources; ++i)
     1506                GLOBALS._lpResources[i] = FROM_LE_32(GLOBALS._lpResources[i]);
    15051507
    15061508        globalDestroy(cmpbuf);
    15071509