mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57:52 -06:00
refactor: share resolver, content and nightly
The probes resolve held files, read content.yml, list the buildbot and fetch nightlies through one function each. - region_check resolves BIOS files from the repo root (probes.entries held_file), so a run outside the root no longer sees every file missing. - region_check reads content.yml as Content objects, and a malformed content folder raises Unavailable instead of FileNotFoundError. - region_check and pack_probe fetch nightlies like the campaign: retried on network errors, streamed to disk, and replaced when the buildbot's ETag or Last-Modified moves. region_check keeps its cores under .cache/region/cores/<core>/ with a build.json record. pack_probe --refresh-cores now downloads only a nightly the buildbot replaced. - The campaign loads profiles with load_emulator_profiles, so *.old.yml backups are skipped and hashes are normalized. Profile digests still come from the file on disk, so recorded checks keep their digest.
This commit is contained in:
1 parent
1165b910ed
commit
3a76cf48ba
7 files changed
+156
-170
No files matched your search
@@ -43,6 +43,7 @@ class Content:
|
||||
frame_hash_every: int
|
||||
pinned: bool
|
||||
boot_file: str | None
|
||||
also_regions: tuple[str, ...] = ()
|
||||
|
||||
@property
|
||||
def key(self) -> str:
|
||||
@@ -61,6 +62,7 @@ def load_content(path: Path) -> dict[str, list[Content]]:
|
||||
frames=int(item.get("frames", 3600)),
|
||||
frame_hash_every=int(item.get("frame_hash_every", 10)),
|
||||
pinned=bool(item.get("pinned", False)), boot_file=spec.get("boot_file"),
|
||||
also_regions=tuple(item.get("also_regions") or ()),
|
||||
))
|
||||
return out
|
||||
|
||||
|
||||
Reference in new issue
Block a user