mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
A ROM's "verified" state comes entirely from the Hasheous signature match flags in `hasheous_metadata`, but `ScanType.HASHES` was missing from both Hasheous gates in `scan_rom`. A rehash recomputed the file hashes and then never re-asked Hasheous about them, so the verification chips stayed dark (#4001). RetroAchievements was already gated in, which is why its provider icon appeared while nothing lit up. A follow-up update scan didn't help either: that branch is gated on `rom.hasheous_id`, which is never set for a ROM that has yet to match. Add `HASHES` to `fetch_hasheous_hash_match` and `fetch_hasheous_rom`, and to the "don't overwrite existing base fields" branch: Hasheous now returns a name/cover/summary on a rehash, and `_identify_rom` short-circuits before the cover download, so a changed `url_cover` would point at an image that is never fetched. Fixes #4001 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>