mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Quality pass over the title id feature, no behaviour change. Give the Switch platform family one home by deriving it from the sigil slug map, and drop the two inline tuples and the local frozenset that restated it. Express the base-title-id rule once: a base id is its own derived base. Compose the bracket regex from the 16-hex pattern instead of repeating it. Return the embedded name from the extraction closure rather than writing it through nonlocal, which removes the is_rom_level flag and the repeated sigil_platform guards, and factor the twice-duplicated rom-level file tail into one helper. Cut two per-ROM costs in _identify_rom: config.yml was re-read and re-parsed three times per ROM, and the prod.keys firmware lookup ran one DB query per Switch ROM despite depending only on the platform. Both are now resolved once, the latter in the per-platform callers. Also document skip_title_id_extraction and embed_switch_title_ids, drop the always-dashed title/save id rows from the metadata tab, and render the file row's chips from one list. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>