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:
Abdessamad Derraz committed 2026-11-24 02:18:53 +01:00
1 parent d3b741e423
commit 6e44a93156
34 files changed
+493 -467

No files matched your search

+2 -2
View File
@@ -349,7 +349,7 @@ class AUserFolderInTheConfigsFolder(unittest.TestCase):
from model.profiles import load_emulator_profiles
from model.platforms import load_platform_config
from resolve.standalone import platform_layouts
from resolve.standalone import standalone_set
from resolve.standalone import platform_launches
profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
profile = profiles["shadps4"]
@@ -357,7 +357,7 @@ class AUserFolderInTheConfigsFolder(unittest.TestCase):
for platform in ("batocera",):
config = load_platform_config(platform, str(REPO_ROOT / "platforms"))
((view, _standalone),) = platform_layouts(
"shadps4", profile, standalone_set(config, profiles)
"shadps4", profile, platform_launches(config, profiles)
)
with self.subTest(platform=platform):
self.assertEqual(