mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: choose regions among the files required-only keeps
This commit is contained in:
1 parent
ce135b788f
commit
c9f8f4b230
3 files changed
+50
-1
No files matched your search
@@ -520,6 +520,7 @@ def _select_variants(
|
||||
source: str,
|
||||
regions,
|
||||
one_per_slot: bool,
|
||||
required_only: bool = False,
|
||||
) -> tuple[set, list, list]:
|
||||
"""Which regional and slot alternatives this pack leaves out.
|
||||
|
||||
@@ -545,6 +546,7 @@ def _select_variants(
|
||||
target_cores=target_cores,
|
||||
include_extras=(source != "platform"),
|
||||
include_all=(source == "truth"),
|
||||
required_only=required_only,
|
||||
)
|
||||
if regions:
|
||||
region_index = region_mod.build_region_index(emu_profiles or {})
|
||||
@@ -704,7 +706,7 @@ def generate_pack(
|
||||
# direction. Runs only when --region is given.
|
||||
region_drops, region_fallbacks, slot_undecidable = _select_variants(
|
||||
config, pack_systems, emulators_dir, db, base_dest, emu_profiles,
|
||||
target_cores, source, regions, one_per_slot,
|
||||
target_cores, source, regions, one_per_slot, required_only,
|
||||
)
|
||||
|
||||
with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as zf:
|
||||
@@ -3077,6 +3079,7 @@ def generate_manifest(
|
||||
target_cores=target_cores,
|
||||
include_extras=(source != "platform"),
|
||||
include_all=(source == "truth"),
|
||||
required_only=required_only,
|
||||
)
|
||||
region_drops = region_mod.resolve_region_drops(
|
||||
region_groups, region_index, regions
|
||||
|
||||
Reference in new issue
Block a user