mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 12:28:51 -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
@@ -37,18 +37,7 @@ def _bios_entries(source: str, dat: LogiqxDat) -> list[dict]:
|
||||
if "firmware" not in dat_name and "bios" not in dat_name:
|
||||
return []
|
||||
roms = dat.roms
|
||||
return [
|
||||
{
|
||||
"dat": dat.name,
|
||||
"name": rom.name,
|
||||
"description": rom.description,
|
||||
"size": rom.size,
|
||||
"crc32": rom.crc32,
|
||||
"md5": rom.md5,
|
||||
"sha1": rom.sha1,
|
||||
}
|
||||
for rom in roms
|
||||
]
|
||||
return dat.provenance_entries(roms)
|
||||
|
||||
|
||||
def _iter_dat_contents(pack: Path) -> Iterator[tuple[str, bytes]]:
|
||||
|
||||
Reference in new issue
Block a user