mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-17 08:53:28 -05:00
fix: skip region-dropped extras in the hidden report
This commit is contained in:
1 parent
24f7ade261
commit
cb41a52b17
3 files changed
+41
-3
No files matched your search
@@ -136,9 +136,13 @@ def hidden_extras(
|
||||
profiles: dict,
|
||||
shipped: dict[str, str],
|
||||
target_cores: set[str] | None = None,
|
||||
region_drops: set[str] | None = None,
|
||||
) -> dict[tuple[str, str, str], str]:
|
||||
"""Report entries the builder holds and still leaves out, with the reason.
|
||||
|
||||
A destination the region pass withdraws never takes its path in the
|
||||
pack, so it blocks nothing here either.
|
||||
|
||||
The builder walks the core extras after the platform's own files and
|
||||
skips a destination that a case-insensitive filesystem folds onto one
|
||||
already packed, or that a packed file blocks as a directory. RetroPie's
|
||||
@@ -169,7 +173,7 @@ def hidden_extras(
|
||||
target_cores=target_cores,
|
||||
):
|
||||
dest = sanitize_pack_path(fe.get("destination", fe.get("name", "")))
|
||||
if not dest:
|
||||
if not dest or (region_drops and dest in region_drops):
|
||||
continue
|
||||
full = dest if not prefix or dest.startswith(f"{prefix}/") else f"{prefix}/{dest}"
|
||||
reason = placement_block(full, seen, lower, parents, case_insensitive)
|
||||
|
||||
+4
-2
@@ -758,6 +758,7 @@ def _mark_hidden(
|
||||
emu_profiles: dict | None,
|
||||
shipped: dict[str, str],
|
||||
target_cores: set[str] | None,
|
||||
region_drops: set[str] | None = None,
|
||||
) -> None:
|
||||
"""What the builder holds but cannot place beside the files it packed."""
|
||||
from packextras import hidden_extras
|
||||
@@ -766,7 +767,7 @@ def _mark_hidden(
|
||||
config, emulators_dir, db,
|
||||
emu_profiles if emu_profiles is not None
|
||||
else load_emulator_profiles(emulators_dir),
|
||||
shipped, target_cores,
|
||||
shipped, target_cores, region_drops,
|
||||
)
|
||||
for u in undeclared:
|
||||
reason = hidden.get(
|
||||
@@ -1091,7 +1092,8 @@ def verify_platform(
|
||||
]
|
||||
_mark_unplaced(config, undeclared, profiles)
|
||||
_mark_hidden(
|
||||
config, undeclared, emulators_dir, db, emu_profiles, shipped, target_cores
|
||||
config, undeclared, emulators_dir, db, emu_profiles, shipped, target_cores,
|
||||
region_drops,
|
||||
)
|
||||
exclusions = find_exclusion_notes(
|
||||
config, emulators_dir, emu_profiles, target_cores=target_cores
|
||||
|
||||
Reference in new issue
Block a user