# FriiDump 0.5.3.6 — Automatic Redump DAT Verification

## Purpose

After a successful ISO dump, FriiDump now checks the finalized output hashes
against the supplied Redump DAT for the selected system. This removes the
manual copy/paste comparison step while preserving the complete printed hash
set.

## Matching policy

A `MATCH` requires all available identity fields used by Redump DAT entries:

- output byte size
- CRC32
- MD5
- SHA-1

SHA-256 is still calculated and printed by FriiDump but is not part of the DAT
match because the supplied Logiqx DAT records do not provide SHA-256.

## System mapping

| Disc type | Stable DAT filename | Supplied entries |
|---|---|---:|
| GameCube | `Nintendo - GameCube.dat` | 2019 |
| Wii / Wii DL | `Nintendo - Wii.dat` | 3780 |
| Xbox/XGD redump-style ISO | `Microsoft - Xbox.dat` | 2683 |

XISO/game-partition output is not compared with the full-disc Xbox DAT.

## Console behavior

Successful example:

```text
Redump DAT verification:
  Status............: MATCH
  DAT...............: redump_dat/Nintendo - GameCube.dat
  Entries scanned...: 2019
  Game..............: Sonic Mega Collection (USA)
  ROM...............: Sonic Mega Collection (USA).iso
  Matched...........: Size, CRC32, MD5, and SHA-1 matched.
```

A missing DAT or `NO MATCH` remains visible in the log and optional JSON report.
It does not erase or modify the image and does not invoke any drive write path.

## CLI

```text
--redump-dat-dir <dir>
--redump-report <file>
--no-redump-verify
```

Default DAT directory: `redump_dat`.

## Local validation

The parser was built with the current FriiDump source and tested against the
supplied GameCube DAT using two known Redump references:

- Sonic Mega Collection (USA): matched uniquely after scanning 2019 entries.
- Super Smash Bros. Melee (USA) (En,Ja) (Rev 2): matched uniquely after
  scanning 2019 entries.

The Linux CMake build completed successfully. The existing MSVC32 response file
was updated to compile `src\redump_dat.c`.
