Game File File Format

I want to create a single data file containing all the data that I need for the game, and I want it to be compressed. I looked at tar and gzip, but I downloaded their sources and I don't know where to start. Can someone give me some guidance on how I can use them?

+3
source share
2 answers

If you will not always download all files from the archive, TAR / GZ may not be a good idea, because you cannot extract specific files as needed. For this reason, many games use ZIP archives that allow you to extract individual files as needed (a good example is Quake, whose PK3 files are nothing but ZIP files with a different extension).

Minizip , which is a ZIP library built on top of zlib, picked up a bit of search . I could not find any separate documentation for myself, but the header files seem to contain a lot of comments, and I believe that you can handle it.

+6
source

, , , , , , , . . zlib.

+3

Source: https://habr.com/ru/post/1768164/


All Articles