mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 22:38:54 -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
@@ -16,7 +16,7 @@ from pathlib import Path
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
|
||||
|
||||
from resolve.archives import contents_members, holds_required_members
|
||||
from resolve.standalone import platform_layouts, standalone_set
|
||||
from resolve.standalone import platform_layouts, platform_launches
|
||||
from resolve.cores import resolve_platform_cores
|
||||
from core.hashing import declared_hash_lists, lists_hashes
|
||||
from model.declarations import declared_components
|
||||
@@ -78,7 +78,7 @@ def doubled_destinations(
|
||||
collisions = find_collisions(scraped, db, zip_contents, data_registry)
|
||||
if not collisions:
|
||||
return []
|
||||
standalone = standalone_set(scraped, profiles)
|
||||
standalone = platform_launches(scraped, profiles)
|
||||
named: dict[str, list[tuple[str, dict, dict, bool]]] = {}
|
||||
for key in sorted(resolve_platform_cores(scraped, profiles)):
|
||||
profile = profiles[key]
|
||||
|
||||
Reference in new issue
Block a user