fix: cross-reference resolves by path: field as fallback

Many emulator profiles use descriptive names (e.g., "SeaBIOS
(128 KB)") while files exist under their path: field basename
(e.g., "bios.bin"). Try path: when name: fails. Eliminates
206 false positives. True missing: 448 -> 242.
This commit is contained in:
Abdessamad Derraz
2026-03-28 18:06:04 +01:00
parent 7f46996b4d
commit 42f2cc5617

View File

@@ -141,6 +141,10 @@ def cross_reference(
in_platform = fname in platform_names
in_repo = _find_in_repo(fname, by_name, by_name_lower, data_names)
if not in_repo:
path_field = f.get("path", "")
if path_field and path_field != fname:
in_repo = _find_in_repo(path_field, by_name, by_name_lower, data_names)
entry = {
"name": fname,