Files
romm/backend/handler
Nathan Krebs d8f08a60f2 fix(scan): fall back to filename name when only libretro matches (#5241)
* fix(scan): fall back to filename name when only libretro matches

Libretro matches by filename and supplies no name. On a complete scan or a
newly added ROM that only libretro identifies, rom_attrs had no name, so the
identified-as log raised KeyError and the scan result was discarded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(scan): keep a new rom's own name when libretro alone matches

code-review (xhigh) pass. A physical game is created with the name the
user typed, and the filename fallback would rebuild it from the
sanitized fs_name ("Kingdom Hearts HD 2.5" -> "Kingdom Hearts HD 2").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(scan): simplify the new-rom name fallback expression

simplify pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(scan): clarify the name fallback comment

humanizer pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
2026-10-28 09:40:40 -04:00
..