Dune-II---The-Maker icon indicating copy to clipboard operation
Dune-II---The-Maker copied to clipboard

Feature/data pack

Open Mira-Chronos opened this issue 3 years ago • 0 comments

  • Step to step, DataPack construction with SDL2 primitives
  • Prototype test program by example
  • Commented code

DataPack

A DataPack is composed by an header and data

Header

The header is organized like this

  • title: on 4 bytes
  • number of files: on 2 bytes (uint16_t) One line for each file that contains
  • its identifier on 40 bytes
  • its position in the data : offset on 4 bytes (uint32_t)
  • the size of the file : sizeFile on 4 bytes (uint32_t)

Data

Data are organized like this file0 offset 0 to 0+sizeFile0 <-- offset1 file1 offset offset1 to offset1 + sizeFile1 <--- offset2 file2 offset offset2 to offset2 + sizeFile2 <--- offset3 file3 offset offset3 to offset3 + sizeFile3 <--- offset4 ...

Mira-Chronos avatar Mar 26 '22 08:03 Mira-Chronos