Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/formats/bfwd.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ The BFWD (**B**ull**f**rog **W**A**D**) file format contains compressed (or unco
* 4 bytes: Filename length
* 4 bytes: Data offset
* 4 bytes: File length
* 4 bytes: Compression type - "4" for [RefPack](http://wiki.niotso.org/RefPack), "0" for uncompressed
* 4 bytes: Compression type
* 4 bytes: Decompressed size
* 12 bytes: Padding

Compression type shall be one of the following:

| Compression Type | value |
|-------------------------------------------|:-----:|
| Uncompressed | 0 |
| [zlib](https://zlib.net/) | 2 |
| [RefPack](http://wiki.niotso.org/RefPack) | 4 |

## Directories

Occasionally, a file's filename may begin with the name of a directory separated using the `\` character. This should
Expand All @@ -43,4 +51,4 @@ Here's an example:

Here, files 0 and 1 both belong to the root of the archive. Files 2 and 3 exist in the `textures` directory, whereas
files 4 and 5 belong to the `stexture` directory. Despite file 3 and file 5 both being called `hello2.wct`, they do not
overlap - they belong in different directories - and therefore they do not conflict.
overlap - they belong in different directories - and therefore they do not conflict.