Skip to content

MAME / CHD Auditor

Arcade collections rot quietly: a clone looks fine until you discover it borrows ROMs from a parent set you deleted, or a CHD disappeared with the disk it lived on. The auditor checks all of that and gives you a per-machine verdict.

The auditor is pure Dart and streams the DAT. A multi-hundred-megabyte mame.xml is parsed in a single pass instead of being loaded into memory, so it runs comfortably on a laptop.

Check Detail
Chip hashes Every ROM entry’s CRC32 and size against the files inside the set’s zip.
BIOS sets The required BIOS zip (for example neogeo.zip) declared by romof.
Parent sets For split clones, the files borrowed from the parent machine.
CHDs Each <disk> image, looked up beside the zip or in a <machine>/<disk>.chd folder.
Archive health A zip that exists but cannot be read is reported separately from a missing one.
Status Meaning
🟢 complete Everything the machine needs is present and matches.
🟡 missing_bios ROMs are fine, but a required BIOS zip is absent.
🟡 missing_parent A split clone is missing files from its parent.
🔴 incomplete One or more chips are missing or CRC-mismatched.
💽 missing_chd The zip is complete but a declared disk image is missing.
🔴 missing There is no zip for this machine in the folder.
⚠️ error The zip exists but could not be read.

Machine-readable slugs are available with --json, so the output can feed a dashboard or a CI job.

Terminal window
openrom-core --audit-mame --dat mame.xml --folder /roms --json
Flag Effect
--audit-mame Enable the auditor.
--dat Path to mame.xml or a Logiqx DAT.
--folder The ROM folder to audit (non-recursive scan of the folder root and one level of CHD lookups).
--only-present Only report machines whose zip is present — skip the “not in your collection” noise.
--no-crc-check Match by size only. Faster, but blind to corrupted chips.
--include-bios Include BIOS / device-only sets in the report.
--json Emit the full result as JSON.
{
"type": "done",
"success": true,
"total_machines": 4200,
"complete": 3850,
"missing_chd": 12,
"machines": [
{
"name": "mslug",
"status": "complete",
"status_label": "🟢 Playable / Complete",
"roms_checked": 12,
"roms_present": 12,
"disks_checked": 0,
"disks_present": 0
}
]
}

The exact summary keys depend on the DAT, but each machine entry always carries name, status, roms_checked, roms_present, disks_checked, disks_present and any missing_* arrays.

The Arcade / MAME tab wraps the same engine with a library-health dashboard: completion percentage, counts per verdict, and a per-game drill-down listing the missing chips or disks by name.

  • Use a matching DAT version. A set split for MAME 0.26x will not validate against a 0.28x DAT. Rebuild with ClrMamePro or mame -verifyroms first if the two disagree wholesale.
  • Run with --only-present first. It gives you a clean picture of what is healthy without drowning the report in machines you never collected.
  • Audit CHDs separately. A CHD can be present, correctly named and still corrupt. Use openrom-core --input <file>.chd --verify-only for that.
  • Keep BIOS zips at the folder root. The auditor looks for them beside the set zips, which is how MAME and most front ends expect them.