mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48:52 -06:00
refactor: move es_systems readers out of batocera
es_systems.yml readers move to scraper/es_systems.py, which the board target scraper imports at load time instead of inside a function to dodge the cycle. The _default.remove_cores list is target override data: it is model.targets.not_cores, no longer a private name of batocera_scraper.
This commit is contained in:
1 parent
14cc76132f
commit
e6295aba88
12 files changed
+174
-167
No files matched your search
@@ -34,7 +34,7 @@ from typing import NamedTuple
|
||||
|
||||
from . import BaseTargetScraper, target_cli
|
||||
from ..base_scraper import fetch_text, github_json
|
||||
from ..batocera_scraper import _not_cores
|
||||
from model.targets import not_cores
|
||||
from ..emuelec_systems import (
|
||||
BUILDS_OF,
|
||||
ES_SYSTEMS_TEMPLATE,
|
||||
@@ -567,7 +567,7 @@ def device_cores(
|
||||
):
|
||||
installed.update(install.cores)
|
||||
offered, _standalone, _dual = es_cores(
|
||||
systems, RUNNERS, BUILDS_OF, _not_cores(PLATFORM_NAME)
|
||||
systems, RUNNERS, BUILDS_OF, not_cores(PLATFORM_NAME)
|
||||
)
|
||||
return sorted(installed & set(offered))
|
||||
|
||||
@@ -575,7 +575,7 @@ def device_cores(
|
||||
def check_names(systems: SystemEmulators) -> None:
|
||||
"""Every ES core name is installed by a package read or known unbuilt."""
|
||||
offered, _standalone, _dual = es_cores(
|
||||
systems, RUNNERS, BUILDS_OF, _not_cores(PLATFORM_NAME)
|
||||
systems, RUNNERS, BUILDS_OF, not_cores(PLATFORM_NAME)
|
||||
)
|
||||
provided = {core for installs in PROVIDERS.values() for i in installs for core in i.cores}
|
||||
unread = sorted(set(offered) - provided - set(UNBUILT))
|
||||
|
||||
Reference in new issue
Block a user