mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user