* fix(scan): skip extracted Switch files when reading title ids
Sigil reads a Switch title id only from an NSP or XCI container, so no
file under an extracted title's exefs or romfs folder can yield one. A
scan still handed every such file to sigil, and the Switch family never
reuses stored ids while a file lacks one, so every quick scan re-read an
extracted game's whole tree (one Switch 2 game in the report holds ~160k
files) and kept each path in the scan's needs-key set for the summary.
Files inside an exefs or romfs folder of a Switch ROM are no longer
title id sources. On a 50k-file extracted game, a quick rescan goes from
50,002 sigil reads and 50,002 retained needs-key paths to none, and its
peak allocation drops from 193 MB to 110 MB.
Refs #5706
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(scan): check row reuse by identity in the extracted Switch rescan test
Unsaved rows all have a None id, so comparing ids could not tell reused
rows from rebuilt ones. Addresses Greptile's review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>