mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 17:33:30 -05:00
fix: lay out both builds of a dual-mode emulator
Batocera, RetroBat, Recalbox and ROCKNIX offer some emulators both as a libretro core and standalone. Filed as standalone only, the libretro layout was dropped: libretro Dolphin had no dolphin-emu/Sys/GC files. Platforms now name dual-mode emulators and each gets both layouts.
This commit is contained in:
1 parent
2b535525ef
commit
3c856bbc10
23 files changed
+1367
-478
No files matched your search
+12
-5
@@ -8,7 +8,12 @@ from __future__ import annotations
|
||||
|
||||
import sys
|
||||
|
||||
from common import _norm_system_id, resolve_platform_cores, runs_standalone
|
||||
from common import (
|
||||
_norm_system_id,
|
||||
platform_layouts,
|
||||
resolve_platform_cores,
|
||||
standalone_set as platform_standalone_set,
|
||||
)
|
||||
from hashing import parse_md5_list
|
||||
from validation import filter_files_by_mode, read_from_system_dir
|
||||
|
||||
@@ -395,7 +400,7 @@ def generate_platform_truth(
|
||||
# The layout rule verify and the pack builder apply: truth guessed its
|
||||
# own from the profile type where the platform names no standalone
|
||||
# emulator, and kept files the pack never carries.
|
||||
standalone_set = {str(c) for c in config.get("standalone_cores") or []}
|
||||
standalone_set = platform_standalone_set(config)
|
||||
|
||||
resolved = resolve_platform_cores(config, profiles, target_cores)
|
||||
|
||||
@@ -449,9 +454,11 @@ def generate_platform_truth(
|
||||
continue
|
||||
cores_profiled.add(emu_name)
|
||||
|
||||
filtered = _archives_not_members(_system_dir_files(
|
||||
profile, runs_standalone(emu_name, profile, standalone_set)
|
||||
))
|
||||
filtered = _archives_not_members([
|
||||
fe
|
||||
for view, standalone in platform_layouts(emu_name, profile, standalone_set)
|
||||
for fe in _system_dir_files(view, standalone)
|
||||
])
|
||||
|
||||
on_platform = {
|
||||
_map_sys_id(sid) for sid in profile.get("systems", [])
|
||||
|
||||
Reference in new issue
Block a user