Free browser tool

XDelta Patch Inspector: Which File Does This Patch Need?

Most failed patches come down to one question: is this the right original file? Drop the patch below to see what it records about its source, then add your file to test it, before you patch anything.

  • Updated
  • Checked against Delta Patcher 3.1.6

Runs entirely in your browser. Your files are never uploaded.

This tool needs JavaScript and a current browser. You can always use the free Delta Patcher desktop app instead.

What an XDelta patch records about its source

An XDelta patch doesn’t contain the original file, and the format has no field for “the checksum of the file you need”. It does carry several clues, and the inspector reads all of them:

Information an xdelta patch carries
ClueWhere it comes fromHow useful it is
Source file namexdelta3 writes the original and output file names into the patch’s application header by default, as output//original/Very: it’s the name the author’s own file had, often a No-Intro or Redump name with region and revision
DescriptionDelta Patcher stores the author’s description in the same header (Base64 text after ^*)Very, when the author wrote one; it often names the required version and checksum
Bytes read from the originalEach window states which range of the original it copies fromGood for ruling files out: a smaller file can’t be right
Output sizeThe sum of all target windowsLets you check the result and spot truncated downloads
ChecksumsAn Adler-32 per window (xdelta3’s VCD_ADLER32 extension)Decisive when testing: a wrong original fails the very first mismatched window

Test your file against the patch

Add your original file in the second box. The inspector does three things:

  1. Size check. If your file is smaller than the range the patch reads, it’s the wrong file, and Delta Patcher would fail with “source file too short”.
  2. Dry run. It applies the patch in memory with checksum validation on, without saving anything. If every checksum matches, your file is the one the patch was made for.
  3. Hashes. It calculates your file’s CRC32, MD5, SHA-1 and SHA-256, so you can compare them with values in the readme or a database such as No-Intro or Redump.

What to do if it doesn’t match

  1. Read the names and description

    Compare the source name the patch records with your file’s: region (USA, Europe, Japan), revision (Rev 1, v1.1) and any tags matter.

  2. Look for the usual differences

    Headered vs unheadered SNES ROMs, trimmed vs full DS ROMs, a different disc or track layout, or a file you already patched once. How to identify the version you have.

  3. Get a clean copy and test again

    Make a fresh copy of the exact version and run the inspector again. When the dry run passes, apply the patch with the online patcher or Delta Patcher.

For patch authors

Make the inspector’s job easy for your users: keep checksums on, write a description that names the exact source file and its CRC32 or SHA-1, and publish the same information in your readme. The patch author kit has a readme template and a checklist.

Continue learning

Sources and references