2023-02-04 13:56:18 +00:00
|
|
|
# Packed
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
struct Header {
|
|
|
|
unsigned char magic[4]; // always BFPK
|
|
|
|
uint32_t version;
|
|
|
|
uint32_t number_of_files;
|
|
|
|
struct File {
|
|
|
|
uint32_t path_length;
|
2023-05-18 11:27:38 +00:00
|
|
|
char path[path_length]; // latin1 encoding
|
2023-02-04 13:56:18 +00:00
|
|
|
uint32_t data_size;
|
|
|
|
uint32_t data_offset; // offset includes header size so it can be used directly in a seek() call
|
|
|
|
} files[];
|
|
|
|
};
|
|
|
|
```
|