rpfixer/readme.md

49 lines
1.3 KiB
Markdown
Raw Normal View History

2024-12-08 22:13:19 +00:00
# rpfixer
2024-12-03 23:29:50 +00:00
2024-12-08 22:13:19 +00:00
This tool allows you to unfuck corrupted images metadata in a resource pack that have been corrupted to be protected.
This tool will not overcome any protection to the zip archive itself. See a program such as [MCRPX](https://github.com/Speedy11CZ/mcrpx) for that.
2024-12-03 23:29:50 +00:00
2024-12-04 00:26:25 +00:00
# Usage
2024-12-08 22:13:19 +00:00
## CLI
#### Manual clone
2024-12-04 00:26:25 +00:00
- download the Rust-Lang for your system
- download this repository
- run `cargo build --release` in the directory
- check `./target/release`
2024-12-08 22:13:19 +00:00
- run
- `respack-decrypter` if you are on linux/mac (RUN `chmod +x respack-decrypter` ON IT FIRST)
- `respack-decrypter.exe` if you are on windows
#### Cargo
2024-12-08 22:13:19 +00:00
- Download the Rust-Lang for your system
- run `cargo install rpfixer`
- Then run the `rpfixer` command
## Function library
- The library has one function: `rpfixer::idk::fix`. Use a `Vec<u8>` in it.
#### Example code
```rust
use std::fs;
fn main() {
let frfr = fs::read("filepath.png").expect("wtf the path doesnt exist");
let mut fr = rpfixer::idk::fix(frfr);
fs::write(thatpath, fr).expect("file could not write btw");
}
```
2024-12-08 22:13:19 +00:00
2024-12-04 00:26:25 +00:00
2024-12-08 22:13:19 +00:00
# Syntax
2024-12-04 00:26:25 +00:00
2024-12-08 22:13:19 +00:00
Check `--help` for syntax.
2024-12-04 00:26:25 +00:00
Example syntax:
2024-12-03 23:29:50 +00:00
# License
2024-12-04 00:26:25 +00:00
It's all MIT, except the example corrupted inventory.png which is courtesy of Wynncraft.
Zeer you better not come after me for this one, you still haven't answered my gdpr req yet