mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
refactor: one owner for a launcher emulator list
The comma-joined emulator field of a launcher record was written in eleven places and read in nine, four of them splitting on ", " with no strip. model.launcherrecords joins and splits it, and every scraper, resolve and packs reader goes through it.
This commit is contained in:
1 parent
2b5031ecd6
commit
0757698063
19 files changed
+79
-29
No files matched your search
@@ -27,6 +27,7 @@ Verification (batocera-systems at the release tag):
|
||||
from __future__ import annotations
|
||||
|
||||
from model.sourcerevision import required_revision
|
||||
from model.launcherrecords import record_emulators
|
||||
from model.targets import not_cores
|
||||
from .base_scraper import fetch_github_latest_version, fetch_text
|
||||
from .batocera_scraper import (
|
||||
@@ -124,7 +125,7 @@ class Scraper(CheckBiosScraper):
|
||||
# no ES core name: only a record of an emulator no image carries goes.
|
||||
launchers = [
|
||||
r for r in extract_launchers(RepoTree.github(REPO, required_revision(self.url, REPO)))
|
||||
if not set(str(r["emulator"]).split(", ")) <= unbuilt
|
||||
if not set(record_emulators(r)) <= unbuilt
|
||||
]
|
||||
return {
|
||||
"platform": "EmuELEC",
|
||||
|
||||
Reference in new issue
Block a user