Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azriel91/lf2_codec
Decodes Little Fighter 2 (LF2) data files.
https://github.com/azriel91/lf2_codec
Last synced: about 1 month ago
JSON representation
Decodes Little Fighter 2 (LF2) data files.
- Host: GitHub
- URL: https://github.com/azriel91/lf2_codec
- Owner: azriel91
- License: zlib
- Created: 2020-07-25T20:59:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T23:59:38.000Z (over 4 years ago)
- Last Synced: 2024-10-14T02:47:48.593Z (2 months ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-ZLIB.md
Awesome Lists containing this project
README
[![docs](https://docs.rs/lf2_codec/badge.svg)](https://docs.rs/lf2_codec)
[![crates.io](https://img.shields.io/crates/v/lf2_codec.svg)](https://crates.io/crates/lf2_codec)# LF2 Codec
Encodes and decodes Little Fighter 2 (LF2) data files.
## Usage
LF2 codec can be used as an application or a library.
### Application
```sh
# Installation
cargo install lf2_codec# Running
lf2_codec decode character.dat > character.txt
lf2_codec encode character.txt > character.dat
```### Library
```rust
use lf2_codec::DataDecoder;let decoded_bytes = DataDecoder::decode_path("character.dat")?;
// or
// let character_dat_reader = BufReader::new(File::open("character.dat")?);
// let decoded_bytes = DataDecoder::decode(character_dat_reader)?;let decoded = String::from_utf8(decoded_bytes)?;
println!("{}", decoded);
```## License
Licensed the [Zlib license](LICENSE-ZLIB.md).
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.