You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saving and loading files uses direct read/write of struct to file. This causes
problem because there are
gaps between members wich should not be written to the file.
Replace the direct read/write of structs by read/write of each members one
after each other.
Original issue reported on code.google.com by pulkoma...@gmail.com on 2 Aug 2008 at 4:02
The text was updated successfully, but these errors were encountered:
If you are using a gcc compiler, you can use "__attribute__ ((__packed__))" in
the
structure definitions you need to be packed in memory, as they were in the DOS
version.
Yes, but writing a structure to a file is not clean and packing the struct does
not
solve the endianness problem. So we're going to write the members of the struc
one
after each other to the file, in a more portable way.
Original comment by pulkoma...@gmail.com on 8 Sep 2008 at 9:06
As of r154, all the structs used in file format are __packed__.
When I solve the endianness issue for all formats I am certainly going to read
and
write member by member anyway, but in either way the packing problem is solved.
Original comment by yrizoud on 17 Sep 2008 at 7:42
Original issue reported on code.google.com by
pulkoma...@gmail.com
on 2 Aug 2008 at 4:02The text was updated successfully, but these errors were encountered: