ROM Renamer & DAT Library
File names lie. A ROM called game (1).bin might be a USA retail dump, a bad
dump, or a prototype. DAT matching identifies files by their contents, then
renames them to the canonical name used by No-Intro and Redump sets.
Everything runs offline: no API calls, no keys, no lookups.
Import a DAT
Section titled “Import a DAT”Download a DAT from datomatic.no-intro.org or redump.org, then import it once:
openrom-core --import-dat nointro_snes.datopenrom-core --list-datsImported DATs are copied into the application’s config directory (under dats/)
and stay available for later scans. You can import as many as you like; a ROM is
matched against all of them.
Scan a folder
Section titled “Scan a folder”openrom-core --scan-roms /roms/snesopenrom-core --json --scan-roms /roms/snesThe scan hashes each file and reports:
| Field | Meaning |
|---|---|
crc32 |
The computed checksum. |
dat_source |
Which imported DAT the match came from. |
matched |
Whether a known-good entry was found. |
canonical_name |
The name the file should have. |
Matching uses a composite CRC32 + size key, so files with a colliding CRC but the wrong length are not misidentified.
Rename
Section titled “Rename”# Preview firstopenrom-core --rename-roms /roms/snes --dry-run
# Applyopenrom-core --rename-roms /roms/snes--dry-run prints every proposed rename without touching the filesystem. Renames
are non-destructive: files are renamed in place, not moved or deleted.
Why the composite key matters
Section titled “Why the composite key matters”A CRC32 is only 32 bits. Across tens of thousands of ROMs, collisions happen.
Matching on CRC32 + size removes almost all false positives, which is why a
correctly dumped file reliably lands on the right canonical name while a truncated
or padded copy does not.
Copier headers change both the size and the CRC. If a file refuses to match, remove the header and scan again.
A full library pass
Section titled “A full library pass”# Import the DATs you care aboutfor dat in dats/*.dat; do openrom-core --import-dat "$dat"; done
# Audit what matchesopenrom-core --json --scan-roms /roms > scan.json
# Preview and apply renamesopenrom-core --rename-roms /roms --dry-runopenrom-core --rename-roms /roms
# Trim duplicates and convertopenrom-core --1g1r /roms --priority "USA,Europe,Japan" --dry-runopenrom-core --folder /roms --format CHD --compression MaxRelated: 1G1R and the MAME auditor.