In short
- The patched file is always written to the same folder as the original file.
- Backup original file off (default): the original is deleted and the patched file takes its name.
- Backup original file on: the original stays, and the output is named
<name>PATCHED.<extension>. - The option resets each time Delta Patcher starts, so check it every time or work on copies.
What happens, step by step
This is how current versions of Delta Patcher handle output, based on the program’s source code:
-
It builds the output name
It takes the original file’s folder, name and extension, and inserts
PATCHEDdirectly before the extension, with no space:Game (USA).iso→Game (USA)PATCHED.iso. -
xdelta3 writes the patched file
The new file is written under that name in the original’s folder. If a file with that name already exists, it’s overwritten. At this point, the original and the new file both exist.
-
If the patch fails, it stops here
Your original is never touched when patching fails.
-
If it succeeds and backup is off, the original is replaced
Delta Patcher deletes the original file and renames
…PATCHEDto the original name. The deleted file doesn’t go to the Recycle Bin or Trash. -
If it succeeds and backup is on, both files stay
Nothing else happens. You keep the untouched original and the new
…PATCHEDfile side by side.
Output naming examples
| Original file | Backup off: result | Backup on: result |
|---|---|---|
Game (USA).iso | Game (USA).iso (now patched) | Game (USA).iso + Game (USA)PATCHED.iso |
rom.sfc | rom.sfc (now patched) | rom.sfc + romPATCHED.sfc |
Track 01.bin | Track 01.bin (now patched) | Track 01.bin + Track 01PATCHED.bin |
data.v2.pak | data.v2.pak (now patched) | data.v2.pak + data.v2PATCHED.pak |
Why this matters
- You can’t send output to another drive. The folder containing the original needs enough free space and write permission. Otherwise the patch fails with
file open failedorwrite failed. Fixing permission problems. - Re-applying the same patch fails. With backup off, the file with the original’s name is now the patched version, so applying the patch again gives a checksum error. Fixing already-patched files.
- Other programs may not recognize the new name. A
…PATCHEDfile may need renaming before a program or emulator will use it.
Disc images with .cue sheets
A .cue file lists the .bin files that make up a disc image by name. If you patch Game.bin with backup on, the result is GamePATCHED.bin, but Game.cue still points to Game.bin, so your emulator loads the unpatched data. Fix it one of two ways:
- Move the patched
.binand a copy of the.cueinto a new folder and rename the.binto the name in the cue sheet, or - open the
.cuein a text editor and change the file name on theFILEline to the patched file’s name.
A safe workflow: keep originals and patched files separate
Because output always lands next to the input, the easiest way to control where it goes is to control where the input is. This folder layout works well:
Patching/
├── originals/ untouched, verified source files (never patch here)
├── work/ copies of the original + the .xdelta patch
└── patched/ finished files, renamed and ready to use
-
Store verified originals separately
Keep untouched source files in
originals. On Windows you can set them read-only (right-click → Properties → Read-only) so nothing modifies them by accident. -
Copy the original into a working folder
Copy (don’t move) the original and the patch into
work. -
Patch the copy
Select the copy in Delta Patcher. With backup off, the copy is replaced by the patched file, which is fine because the real original is safe elsewhere.
-
Move and rename the result
Move the patched file into
patchedand give it a descriptive name, such asGame (USA) [Translation v1.2].iso.
“My original file is gone”
If you applied a patch with Backup original file off, the file that now has the original’s name is the patched version, and the original was deleted, not moved to the Recycle Bin or Trash. To confirm, compare its checksum with the original checksum in the patch’s readme. How to check a checksum. To get the original back, restore it from your own backup or make a fresh copy from the source you originally used. Next time, tick Backup original file or use the workflow above.
If you need to choose the output name
For full control over the output path, as in scripts or batch jobs, use the xdelta3 command line, which takes the output file as an argument:
xdelta3 -d -s "originals/Game (USA).iso" translation.xdelta "patched/Game (USA) [Translation].iso"