Skip to content

Watch Folder & 1G1R

These two features bookend a collection workflow: the watch folder handles files on the way in, and 1G1R trims the library down to one copy of each game.

--watch runs OpenROM as a long-lived process that converts new files as they appear. It is designed for download folders, network shares and capture boxes where files show up while you are not looking.

Terminal window
openrom-core --watch /inbox --output /out --format CHD --settle-seconds 10
Flag Meaning
--watch <folder> The folder to watch.
--output <folder> Where converted files go. Required in practice — do not write back into the watched folder.
--format Target format, e.g. CHD, ZSO, RVZ.
--settle-seconds How long a file’s size must stay unchanged before it is processed. Default 3.
--delete-source Remove the source file after a successful conversion.
--json Emit progress events as JSON lines.

A file can appear before it has finished copying. Converting at that moment produces a truncated image. The daemon samples the file size until it has been stable for the whole settle window, then starts the job. Raise --settle-seconds for slow network shares or large files.

Hidden files and files that disappear mid-wait are skipped.

The Watch Folder tab exposes the same feature with start/stop controls, input and output folder pickers, and a live log.

A 1G1R (1 Game 1 ROM) set keeps the single best release of each title and moves everything else aside. It is the standard way to build a curated library for a handheld or a front end.

Terminal window
# Preview — nothing is moved
openrom-core --1g1r /roms/snes --dry-run
# Apply, preferring USA then Europe then Japan
openrom-core --1g1r /roms/snes --priority "USA,Europe,Japan"
Flag Meaning
--1g1r <folder> Folder to filter.
--priority Comma-separated region order. Default USA,Europe,Japan.
--dry-run Report the decision for every file without touching anything.
--json Full per-file report as JSON.

Files are clustered by clean title, then sorted by:

  1. Pre-release penalty — retail releases beat beta, proto and demo builds.
  2. Region rank — the position in --priority.
  3. Revision level — higher revisions win.
  4. Dump quality — verified dumps beat bad dumps.
  5. Alphabetical order as a final tie-break.

They are moved into a _duplicates/ folder inside the target directory — not deleted. If you run without --dry-run and dislike the result, move them back. Companion files (.cue, .m3u, .sav, .srm and similar) follow their own rules and are not treated as separate games.

Disc and side labels are preserved, so Game (Disc 1) and Game (Disc 2) stay together as a multi-disc set rather than competing.

Terminal window
# 1. Rename to canonical DAT names first so titles cluster correctly
openrom-core --import-dat nointro_snes.dat
openrom-core --rename-roms /roms/snes
# 2. Preview the 1G1R result
openrom-core --1g1r /roms/snes --priority "USA,Europe,Japan" --dry-run
# 3. Apply it
openrom-core --1g1r /roms/snes --priority "USA,Europe,Japan"
# 4. Convert the survivors to a space-efficient format
openrom-core --folder /roms/snes --format CHD