mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05:00
refactor: fix cross-reference archive grouping and path resolution
Group archived files by archive unit in find_undeclared_files instead of reporting individual ROMs. Add path-based fallback for descriptive names (e.g. "SeaBIOS (128 KB)" resolves via path: bios.bin). Update _collect_extras to use archive name for pack resolution. Regenerate database with new bios files. 6 new E2E tests covering archive in_repo, missing archives, descriptive names, and pack extras.
This commit is contained in:
@@ -337,8 +337,10 @@ def _collect_emulator_extras(
|
||||
for u in undeclared:
|
||||
if not u["in_repo"]:
|
||||
continue
|
||||
name = u["name"]
|
||||
dest = u.get("path") or name
|
||||
# For archive entries, use the archive name for resolution
|
||||
archive = u.get("archive")
|
||||
name = archive if archive else u["name"]
|
||||
dest = archive if archive else (u.get("path") or u["name"])
|
||||
full_dest = f"{base_dest}/{dest}" if base_dest else dest
|
||||
if full_dest in seen:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user