mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-27 05:02:48 +00:00
fix: alias-only files missing from full packs
find_undeclared_files was enriching declared_names with DB aliases, filtering core extras that were never packed by Phase 1 under that name. Pass strict YAML names to _collect_emulator_extras so alias- only files (dc_bios.bin, amiga-os-310-a1200.rom, scph102.bin, etc.) get packed at the emulator's expected path. Also fix truth mode output message and --all-variants --verify-packs quick-exit bypass.
This commit is contained in:
parent
a1333137a0
commit
9bbd39369d
11 changed files with 1029 additions and 249 deletions
|
|
@ -314,11 +314,16 @@ def find_undeclared_files(
|
|||
target_cores: set[str] | None = None,
|
||||
data_names: set[str] | None = None,
|
||||
include_all: bool = False,
|
||||
declared_names: set[str] | None = None,
|
||||
) -> list[dict]:
|
||||
"""Find files needed by cores but not declared in platform config."""
|
||||
# Collect all filenames declared by this platform, enriched with
|
||||
# canonical names from DB via MD5 (handles platform renaming)
|
||||
declared_names = expand_platform_declared_names(config, db)
|
||||
"""Find files needed by cores but not declared in platform config.
|
||||
|
||||
declared_names overrides the default enriched set from
|
||||
expand_platform_declared_names. Pass a strict set (YAML names only)
|
||||
when building packs so alias-only names still get packed.
|
||||
"""
|
||||
if declared_names is None:
|
||||
declared_names = expand_platform_declared_names(config, db)
|
||||
|
||||
# Collect data_directory refs
|
||||
declared_dd: set[str] = set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue