06-10-2012, 08:53 PM
I have just realized, when trying to update the information on PAK format in the wiki, that there's a fundamental flaw in the format design. It doesn't take endianness into account at all. When reading and writing the number of chunks and the chunk header, no endianness conversions are performed, meaning that a file saved on one platform is unusable on another platform.
Traditionally, MCServer has been used on Intel, so we probably could declare that it uses little-endian formatting, and fix the code to that. What do you think?
Traditionally, MCServer has been used on Intel, so we probably could declare that it uses little-endian formatting, and fix the code to that. What do you think?