Combining resources into a single binary file

How to combine several resources for the application (images, sounds, scripts, xmls, etc.) into one / several binary files so that they are protected from the user's hands? What are the typical steps (organization, download, encryption, etc.)?

This is especially common in game development, but many game frameworks and engines there do not provide an easy way to do this, nor do they describe a general approach. I wanted to know how to do this, but I don’t know where to start. Can someone point me in the right direction?

+3
source share
5 answers

. m_pGladiator , . .

-, ( packfiles), , , , . , . , , , . ( ), m_pGladiator, .

packfiles. - , . , . :

  • . . .
  • , , //etc . , () , .

, , . , - zlib. , , , , , . , , , , , . , , , , , . , destinatino buffer, , .. , , . , ( ) . .

, , - , . , 1000 , , . , , , , packfile, , , . . , , , , packfile, , packfile. , .. .

, , , m_pGladiator, , . ( ). , , , , , , , . , , . zlib lzw ( ). MD5.

, .

+3

Java: zip API-, , .

+2

: .

Mac OS 6,7,8 API, . , " ". Edit: ROOT .

, . ?


: , , :

  • , , - .
  • .
  • ( ) .

, , .

0

. , , .

  • , . (, ), . . , . , .

  • , , MD5 .

  • , zlib , .

  • . . , .

, , .. - , , . , .

0

For future people like me who are wondering about the same topic, check out the following two links:

http://www.sfml-dev.org/wiki/en/tutorials/formatdat

http://archive.gamedev.net/reference/programming/features/pak/

0
source

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


All Articles