TryLoadFileFromPak fails for me because on my machine size of pakheader_t and pakentry_t structs is wrong due to long being 8 byte long instead of 4 (ref), which causes wrong data being read and malloc failing because of that. Changing long to uint32_t in these structs fixes the issue.
TryLoadFileFromPak
fails for me because on my machine size ofpakheader_t
andpakentry_t
structs is wrong due tolong
being 8 byte long instead of 4 (ref), which causes wrong data being read and malloc failing because of that. Changinglong
touint32_t
in these structs fixes the issue.