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 folder
Section titled “Watch folder”--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.
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. |
Why the settle window matters
Section titled “Why the settle window matters”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.
1G1R — one game, one ROM
Section titled “1G1R — one game, one ROM”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.
# Preview — nothing is movedopenrom-core --1g1r /roms/snes --dry-run
# Apply, preferring USA then Europe then Japanopenrom-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. |
How the winner is chosen
Section titled “How the winner is chosen”Files are clustered by clean title, then sorted by:
- Pre-release penalty — retail releases beat beta, proto and demo builds.
- Region rank — the position in
--priority. - Revision level — higher revisions win.
- Dump quality — verified dumps beat bad dumps.
- Alphabetical order as a final tie-break.
Where duplicates go
Section titled “Where duplicates go”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.
Suggested workflow
Section titled “Suggested workflow”# 1. Rename to canonical DAT names first so titles cluster correctlyopenrom-core --import-dat nointro_snes.datopenrom-core --rename-roms /roms/snes
# 2. Preview the 1G1R resultopenrom-core --1g1r /roms/snes --priority "USA,Europe,Japan" --dry-run
# 3. Apply itopenrom-core --1g1r /roms/snes --priority "USA,Europe,Japan"
# 4. Convert the survivors to a space-efficient formatopenrom-core --folder /roms/snes --format CHD