Port of the PS2 Homebrew tool esr-disc-patcher-cli. Based on Tatsh's original work posted on PSX-Scene.
These older versions contain several bugs, at least one of which is potentially exploitable. This tool is safer in that regard at least.
Either you can clone this repo and build in the usual way with cargo build --release
. Or use cargo install esrtool
to install it from crates.io.
Patching is done in place to maintain drop in compatibility with exisitng tools. But it is lossy maintain a clean rip of your discs for archive.
esrtool p PATH_TO_ISO
esrtool u PATH_TO_ISO
NOTE: Unpatching is not clean, do not use it to store copies of the ISO. Instead maintain a clean one. Data is lost during the patching process. Infact many other tools I've tested drop junk into the file including potentially private environment data.
MIT Licensed to fit with similar software. Also note notice in other ESR patching tools below.