mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 17:03:05 +00:00
Ooops
svn-id: r15633
This commit is contained in:
parent
25b70535be
commit
feb6b490c1
@ -308,9 +308,9 @@ void ResMan::openScriptResourceBigEndian(uint32 id) {
|
||||
MemHandle *handle = resHandle(id);
|
||||
// uint32 totSize = handle->size;
|
||||
Header *head = (Header*)handle->data;
|
||||
head->comp_length = READ_LE_UINT32(&head->comp_length);
|
||||
head->decomp_length = READ_LE_UINT32(&head->decomp_length);
|
||||
head->version = READ_LE_UINT16(&head->version);
|
||||
head->comp_length = FROM_LE_32(head->comp_length);
|
||||
head->decomp_length = FROM_LE_32(head->decomp_length);
|
||||
head->version = FROM_LE_16(head->version);
|
||||
uint32 *data = (uint32*)((uint8*)handle->data + sizeof(Header));
|
||||
uint32 size = handle->size - sizeof(Header);
|
||||
if (size & 3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user