mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-17 08:53:28 -05:00
fix: settle gaps by slot and size as verify does
This commit is contained in:
1 parent
b173a2a851
commit
be7a357999
6 files changed
+142
-58
No files matched your search
@@ -1829,6 +1829,17 @@ def declared_root(config: dict) -> str:
|
||||
return root if count / len(roots) > 0.9 else ""
|
||||
|
||||
|
||||
def merged_platform_declarations(
|
||||
configs: list[dict], db: dict
|
||||
) -> dict[str, list[tuple[int | None, str]]]:
|
||||
"""`platform_declarations` of several platforms, one index."""
|
||||
merged: dict[str, list[tuple[int | None, str]]] = {}
|
||||
for config in configs:
|
||||
for name, places in platform_declarations(config, db).items():
|
||||
merged.setdefault(name, []).extend(places)
|
||||
return merged
|
||||
|
||||
|
||||
def expand_platform_declared_names(config: dict, db: dict) -> set[str]:
|
||||
"""The names a platform declares, enriched as `platform_declarations`."""
|
||||
return set(platform_declarations(config, db))
|
||||
|
||||
Reference in new issue
Block a user