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

+1 -1
View File
@@ -94,7 +94,7 @@ class CoreChoice(unittest.TestCase):
self.assertTrue(packprobe.libretro_build_runs("duckstation", both, {
"standalone_cores": ["duckstation"], "dual_mode_cores": ["duckstation-sa"]}, {}))
# A buildbot core installable under the standalone name is its
# libretro build, run both ways (standalone_set).
# libretro build, run both ways (platform_launches).
self.assertTrue(packprobe.libretro_build_runs("duckstation", both, {
"standalone_cores": ["duckstation"], "installable_cores": ["duckstation"]}, {}))
self.assertFalse(packprobe.libretro_build_runs("x", {"type": "standalone"}, {}, {}))