mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 20:38:52 -06:00
refactor: move verify, slots, crossref into packs
The three commands keep their parser, main and printing. Scans, scopes, report text, the JSON forms, the strict gate and the destinations file live in new packs modules, one subject each.
This commit is contained in:
1 parent
1e95a73a4d
commit
6ba52a9682
21 files changed
+897
-774
No files matched your search
@@ -0,0 +1,32 @@
|
||||
"""The profile gaps of one gap report scope, measured as verify and the builder measure them."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from packs.crossref import (
|
||||
build_supplemental_index,
|
||||
cross_reference,
|
||||
global_report_scope,
|
||||
platform_configs,
|
||||
)
|
||||
from packs.crossrefscope import TreeScope
|
||||
from resolve.launchers import LauncherLayer, declared_destinations
|
||||
|
||||
|
||||
def scope_gaps(tree: TreeScope, db: dict, platforms_dir: str, platform: str | None) -> dict:
|
||||
"""Each profile of the scope with the files its platforms leave undeclared."""
|
||||
platform_scope = tree.platform
|
||||
declared, global_scope = global_report_scope(
|
||||
platform_configs(platforms_dir, tree.selected), db)
|
||||
global_scope["standalone_cores"] = tree.standalone_cores
|
||||
data_names = build_supplemental_index()
|
||||
return cross_reference(
|
||||
tree.profiles, declared, db, data_names, **global_scope,
|
||||
platform=(
|
||||
platform_scope.config.get("_key", platform) if platform_scope else ""
|
||||
),
|
||||
# What the platform's launchers open, as verify and the builder read it.
|
||||
launcher_layer=LauncherLayer(
|
||||
platform_scope.config, tree.profiles, platform_scope.relevant, db,
|
||||
declared_destinations(platform_scope.config),
|
||||
) if platform_scope else None,
|
||||
)
|
||||
Reference in new issue
Block a user