Crates.io | lib1337patch |
lib.rs | lib1337patch |
version | 0.2.2 |
source | src |
created_at | 2023-08-12 13:53:40.274132 |
updated_at | 2023-08-19 01:05:51.796161 |
description | Library dedicated to parsing 1337 patch files. |
homepage | |
repository | https://github.com/GGLinnk/lib1337patch-rs |
max_upload_size | |
id | 942755 |
size | 37,251 |
Rust library dedicated to parsing 1337 patch files.
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.
}
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.