Crates.io | rpfixer |
lib.rs | rpfixer |
version | |
source | src |
created_at | 2024-12-08 22:20:24.220265 |
updated_at | 2024-12-15 17:30:06.152575 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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/release
rpfixer
if you are on linux/mac (RUN chmod +x rpfixer
ON IT FIRST)rpfixer
if you are on windowscargo install rpfixer
rpfixer
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