Open Protofall opened 4 years ago
Endianess must be considered for
crayon_savefile_serialise()
crayon_savefile_deserialise()
crayon_savefile_check_savedata()
When we check the versionI also need a better understanding of how endian-ness works. What happens if our buffer isn't a multiple of 4 bytes long (ie, 23 bytes long, how do we handle the last 3 bytes). The answer might be to extend to the nearest multiple of 4 bytes, but I'm not sure.
Some useful info on byte order with endian-ness
https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html
This needs to be a requirement before the PC port of Crayon happens.