| Crates.io | rpfixer |
| lib.rs | rpfixer |
| version | 0.4.3 |
| created_at | 2024-12-08 22:20:24.220265+00 |
| updated_at | 2024-12-15 17:30:06.152575+00 |
| description | A tool to fix Minecraft: Java Edition resource pack image protection |
| homepage | |
| repository | https://git.frfrnocap.men/endernon/rpfixer |
| max_upload_size | |
| id | 1476786 |
| size | 20,017 |
This tool allows you to fix corrupted images' metadata in a resource pack, where the images have been corrupted to be protected.
This tool will not overcome any protection to the zip archive itself. See a program such as MCRPX for that.
cargo build --release in the directory./target/releaserpfixer if you are on linux/mac (RUN chmod +x rpfixer ON IT FIRST)rpfixer if you are on windowscargo install rpfixerrpfixer commandrpfixer::fix. Use a Vec<u8> in it.use std::fs;
fn main() {
let frfr: Vec<u8> = fs::read("filepath.png").expect("wtf the path doesnt exist");
let mut fr: Vec<u8> = rpfixer::fix(frfr);
fs::write("filepath.png", fr).expect("file could not write btw");
}
Check --help for syntax.
Example syntax:
It's all MIT, except the example corrupted inventory.png and inventory-fix.png which is courtesy of Wynncraft.
Zeer you better not come after me for this one, you guys still haven't answered my gdpr req yet