lib1337patch

Crates.iolib1337patch
lib.rslib1337patch
version0.2.2
sourcesrc
created_at2023-08-12 13:53:40.274132
updated_at2023-08-19 01:05:51.796161
descriptionLibrary dedicated to parsing 1337 patch files.
homepage
repositoryhttps://github.com/GGLinnk/lib1337patch-rs
max_upload_size
id942755
size37,251
Gabriel Grondin (GGLinnk)

documentation

README

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.

Commit count: 12

cargo fmt