mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
refactor: carry platform launches as a dataclass
standalone_set returned one string set mixing standalone names with ten JSON-tagged record kinds that every reader re-decoded. platform_launches now returns a frozen PlatformLaunches (resolve/launches.py) with typed fields, runs_standalone, is_dual, system_file_index and merged, which _build_layouts and packprobe share.
This commit is contained in:
1 parent
d3b741e423
commit
6e44a93156
34 files changed
+493
-467
No files matched your search
@@ -23,6 +23,7 @@ import yaml
|
||||
|
||||
from model.profiles import emulator_profiles_cache, load_emulator_profiles
|
||||
from model.platforms import load_platform_config
|
||||
from resolve.launches import PlatformLaunches
|
||||
from resolve.launchers import LauncherLayer, launcher_places, suffixed_stem
|
||||
from packs.gaps import find_undeclared_files
|
||||
from packs.coverage import verify_platform
|
||||
@@ -443,7 +444,7 @@ class LauncherLayerTest(unittest.TestCase):
|
||||
report = cross_reference(
|
||||
self.profiles, declared, self.db, set(),
|
||||
all_declared=scope["all_declared"],
|
||||
standalone_cores={"psxemu", "fixemu"},
|
||||
standalone_cores=PlatformLaunches(standalone=frozenset({"psxemu", "fixemu"})),
|
||||
platform="launchertest", launcher_layer=layer,
|
||||
)
|
||||
gaps = sorted(
|
||||
|
||||
Reference in new issue
Block a user