Removed the remaining two FIXME's - my analysis of the data indicates no issues with structure packing, and all multi-byte data accesses are wrapped using loadShort/saveShort, which is endian safe
svn-id: r41096
This commit is contained in:
parent
c730e0290d
commit
5bb449b2bf
1 changed files with 0 additions and 3 deletions
|
@ -258,7 +258,6 @@ static void syncOverlays2(Common::Serializer &s) {
|
|||
// save BSS
|
||||
s.syncAsSint16LE(ovlData->sizeOfData4);
|
||||
if (ovlData->sizeOfData4)
|
||||
// FIXME: Endian and structure packing problems for this data pointer
|
||||
s.syncBytes(ovlData->data4Ptr, ovlData->sizeOfData4);
|
||||
|
||||
// save variables
|
||||
|
@ -344,8 +343,6 @@ void syncScript(Common::Serializer &s, scriptInstanceStruct *entry) {
|
|||
s.syncAsSint16LE(ptr->varA);
|
||||
|
||||
if (ptr->varA) {
|
||||
// FIXME: This code is not endian safe, and breaks if struct
|
||||
// packing changes. Read/write the members one by one instead.
|
||||
if (s.isLoading())
|
||||
ptr->var6 = (byte *)mallocAndZero(ptr->varA);
|
||||
s.syncBytes(ptr->var6, ptr->varA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue