Introduction
UPS is a binary patch format by Near (byuu), released in 2008. It records how one file differs from another, with checksums so that a patch is only applied to the right file.
Structure
The file starts with UPS1, followed by the input and output file sizes as
variable-length numbers. Each following block gives a relative offset to the next
difference and then the XOR of the input and output bytes, ended by a zero byte;
storing XOR values lets the same patch be applied and reverted. The last 12 bytes are
CRC32 checksums of the input, the output and the patch.
Not described
Known, not yet covered
- Reference: this page is a summary; the number encoding and the block rules are not yet described on this site.
- Viewer: the site has no patch viewer for UPS files.
Links
Software
- UniPatcher – console ROM patcher that applies UPS patches (Android)
Reference
- UPS file format specification – version 1.0 by Near, listed at Romhacking.net
- UniPatcher wiki: UPS – the header, blocks and checksums
- SnesLab: patch formats – origins of IPS, UPS and BPS