mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-18 18:22:47 +00:00
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:
parent
7f46996b4d
commit
42f2cc5617
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue