mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
fix: keep only the system's entries in --system
A multi-system profile shipped every entry: the Lynx system pack carried 34 PlayStation, Saturn and Apple II files from mednafen. The entry's own system decides, as the platform pack and the installer already do.
This commit is contained in:
1 parent
47babe0bf4
commit
c2e3d64343
4 files changed
+87
-4
No files matched your search
@@ -1628,6 +1628,18 @@ def profiles_for_systems(
|
||||
return matching
|
||||
|
||||
|
||||
def entry_serves_systems(entry: dict, profile: dict, system_ids: list[str]) -> bool:
|
||||
"""Whether a profile entry belongs to one of the systems, spelled either way.
|
||||
|
||||
The entry's own `system:` decides; one without it serves every system
|
||||
of its profile, the rule a platform pack applies to core extras.
|
||||
"""
|
||||
own = entry.get("system")
|
||||
systems = [own] if own else profile.get("systems", [])
|
||||
wanted = {_norm_system_id(sid) for sid in system_ids}
|
||||
return bool(wanted & {_norm_system_id(str(sid)) for sid in systems})
|
||||
|
||||
|
||||
def select_emulator_profiles(
|
||||
profile_names: list[str],
|
||||
all_profiles: dict,
|
||||
|
||||
Reference in new issue
Block a user