Introduction
BPS is a binary patch format by Near (byuu), who published its specification into the public domain; the specification calls the files beat patches. A patch turns a source file into a target file and checks both.
Structure
The file starts with BPS1, then the source size, the target size and the
size of an optional metadata block, as variable-length numbers, and the metadata
itself (officially UTF-8 XML). A run of actions follows: SourceRead, TargetRead (with
literal bytes), SourceCopy and TargetCopy. The last 12 bytes are CRC32 checksums of
the source, the target and the patch.
Not described
Known, not yet covered
- Reference: this page is a summary; the number encoding and the exact meaning of each action are not yet described on this site.
- Viewer: the site has no patch viewer for BPS files.
Links
Software
- Floating IPS (Flips) – creates and applies IPS and BPS patches (Windows, Linux)
- UniPatcher – console ROM patcher that applies BPS patches (Android)
Reference
- BPS specification at Romhacking.net – the document listed as the specification
- Copy of byuu’s BPS specification – the text, as a public gist
- SnesLab: patch formats – origins of IPS, UPS and BPS