/lib1337patch-rs

Rust library dedicated to parsing 1337 patch files

Primary LanguageRustMIT LicenseMIT

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.