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
@@ -8,7 +8,7 @@ import os
from model.platforms import load_platform_config
from model.sources import source_yaml_file
from resolve.standalone import core_dir_tags
from resolve.standalone import core_dirs
def group_identical_platforms(
@@ -65,7 +65,7 @@ def group_identical_platforms(
bool(config.get("case_insensitive_fs")),
# Where each core's files go: the same cores handed other
# folders make another pack.
sorted(core_dir_tags(config)),
sorted(core_dirs(config)),
]
fp = hashlib.sha1(f"{fp}|{emulators}".encode()).hexdigest()
if target_cores_cache: