GfArch
Rust crate for handling Good-Feel's GfArch files.
Capabilities
You can extract and create archives that use the following compression algorithms:
- None
- Byte Pair Encoding
- LZ10
Usage
Archive Creation
// "archive_1" is now a GoodFeelArchive
let archive_1 = pack_from_files;
// "archive_2" is now also a GoodFeelArchive
let archive_2 = pack_from_bytes;
Archive Extraction
let archive = read?;
// "files" is now a collection of file data and filenames
let files = extract?;
Custom Compression Types
Below is a table of custom compression types that can be used instead of BPE or LZ10. To use one, enable its feature.
| Compression | GFCP Value (Decimal) |
|---|---|
zlib |
10 |
Notable Dependencies
- bpe-rs
- Byte Pair Encoding
- nintendo_lz
- LZ10/LZ11 compression/decompression