refactor: share scraper and launcher helpers

BaseScraper reads JSON once (_fetch_json, json_object), every scraper files its requirements through systems_from_requirements, and the batocera-systems readers (Batocera, KNULLI, AmberELEC, EmuELEC) inherit CheckBiosScraper. Launcher modules share one Launcher record, one LauncherPatternMissing and one link_record. DAT importers build provenance entries from LogiqxDat.
This commit is contained in:
Abdessamad Derraz committed 2026-11-20 18:28:33 +01:00
1 parent ac16875c5b
commit 7cd499531d
27 files changed
+256 -360

No files matched your search

+3 -7
View File
@@ -10,18 +10,14 @@ from collections.abc import Iterator
from model.sourceref import span
from .configgen_launchers import LauncherPatternMissing
STRING = r'"((?:[^"\\\n]|\\.)*)"'
Record = dict[str, object]
class LauncherPatternMissing(ValueError):
"""A construct an extractor reads is absent from the launcher source."""
def __init__(self, path: str, what: str) -> None:
super().__init__(f"{path}: {what} not found")
class Source:
"""One source file with line lookup and C#-aware brace matching."""