mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 05:07:31 +01:00
_should_get_rom_files only re-reads a ROM's bytes for a new entry or a COMPLETE/HASHES scan, so UPDATE, UNMATCHED, QUICK and NEW_PLATFORMS scans leave existing files alone. Firmware had no equivalent gate: every scan of every type read and hashed every BIOS file on the platform, serially, even though a quick scan is described to users as "Scan new games only". Add _should_hash_firmware alongside its ROM counterpart and apply the same rule, confirming the file is unchanged by size before the skip. The database row is consulted first, so an entry that could never be skipped costs no stat, and missing_from_fs is only written when it actually flips. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>