Skip to content
Boris Timofeev edited this page Sep 28, 2016 · 2 revisions

The document is based on source code of DPS patcher by Marc de Falco

DPS File Format

Header

  • 64 bytes: name of the patch

  • 64 bytes: author of the patch

  • 64 bytes: version of the patch

  • 1 byte: patch flag (1 if the patch unstable)

  • 1 byte: dps version

  • 4 bytes: the size of the original rom

  • ? bytes: DATA (repeated until the end of file)

DATA

  • 1 byte: mode [0 or 1]

  • 4 bytes: offset in the output rom

  • ? bytes: CHUNK

CHUNK (if mode == 1)

  • 4 bytes: length X

  • X bytes: data

If mode == 1, the data is copied from the original rom to the output rom.

CHUNK (if mode == 0)

  • 4 bytes: offset in the input rom

  • 4 bytes: length

If mode == 0, the data is copied from the patch file to the output rom.

Clone this wiki locally