1 unstable release
0.2.2 | Aug 19, 2023 |
---|---|
0.2.1 |
|
0.1.2 |
|
#1695 in Parser implementations
19KB
206 lines
lib1337patch-rs
Rust library dedicated to parsing 1337 patch files.
Usage
use lib1337patch::F1337Patch;
use std::fs::File;
fn main() {
let mut patchfile = File::open("test.1337.txt").unwrap();
let f1337 = F1337Patch::from_patchfile(&mut patchfile).unwrap();
println!("{}", f1337.target_filename);
for patch in f1337.patches {
println!("{:#016X}: {:#02X} -> {:#02X}", patch.target_address, patch.old, patch.new);
}
// Or use your favorite bin edition library.
}
Contributing
You are free to contribute to this project.
Fork, edit, commit and pull request.
Easy as that.
If you encounter any issue or have any suggetion don't hesitate to post an issue.