mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
endianness
svn-id: r15729
This commit is contained in:
parent
073d0680e1
commit
8e4b36cb51
@ -199,7 +199,7 @@ namespace Kyra {
|
||||
// works with the file
|
||||
uint32 pos = 0, startoffset = 0, endoffset = 0;
|
||||
|
||||
startoffset = *(reinterpret_cast<uint32*>((_buffer + pos)));
|
||||
startoffset = READ_LE_UINT32(_buffer + pos);
|
||||
pos += 4;
|
||||
|
||||
while (pos < filesize) {
|
||||
@ -212,7 +212,7 @@ namespace Kyra {
|
||||
if(!chunk->_name)
|
||||
break;
|
||||
|
||||
endoffset = *(reinterpret_cast<uint32*>((_buffer + pos)));
|
||||
endoffset = READ_LE_UINT32(_buffer + pos);
|
||||
pos += 4;
|
||||
|
||||
chunk->_data = _buffer + startoffset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user