mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 18:17:53 -06:00
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:
1 parent
ac16875c5b
commit
7cd499531d
27 files changed
+256
-360
No files matched your search
@@ -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."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user