mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-14 05:53:47 -06:00
fix: split only the systems the target runs
--split --target asked for a part per declared system, and each one the target drops ended on a refusal naming it unknown (finding 14).
This commit is contained in:
1 parent
c7df790744
commit
7f31cf37cf
2 files changed
+40
-3
No files matched your search
@@ -1940,7 +1940,11 @@ def generate_split_packs(
|
||||
split_dir = os.path.join(output_dir, f"{part_prefix}{group_tag}_Split")
|
||||
os.makedirs(split_dir, exist_ok=True)
|
||||
|
||||
systems = config.get("systems", {})
|
||||
if emu_profiles is None:
|
||||
emu_profiles = load_emulator_profiles(emulators_dir)
|
||||
# The systems a core of the target runs: a part per declared system sent
|
||||
# each one the target drops to a refusal naming it as unknown.
|
||||
systems = platform_scope_systems(config, emu_profiles, target_cores)
|
||||
|
||||
if group_by == "manufacturer":
|
||||
groups = _group_systems_by_manufacturer(systems, db, bios_dir)
|
||||
@@ -1949,8 +1953,6 @@ def generate_split_packs(
|
||||
|
||||
# Pre-compute core extras once (expensive: scans 260+ emulator profiles)
|
||||
# then distribute per group based on emulator system overlap
|
||||
if emu_profiles is None:
|
||||
emu_profiles = load_emulator_profiles(emulators_dir)
|
||||
base_dest = config.get("base_destination", "")
|
||||
# Each part cuts the platform's own entries from the full profiles. The
|
||||
# extras are collected once here, already without the cores' game data.
|
||||
|
||||
Reference in new issue
Block a user