https://gitlab.synchro.net/main/sbbs/-/commit/e18c28da96b9c1d4d0bee1c3
Modified Files:
exec/load/syncretro_getcore.js syncretro_getroms.js
Log Message:
syncretro: fall back to the mirror for cores and ROMs
Both shared fetchers now download through xtrn_mirror_download(), which
covers syncnes, syncivision and syncarcade at once -- their per-door
wrappers are unchanged.
The libretro buildbot serves every platform's build under the same
<core>.zip, so a flat mirror directory cannot hold more than one of them
under that name; the mirrored copy is platform-qualified instead (fceumm_libretro.so-linux-x86_64.zip). Those are nightly builds, so no
checksum is pinned and what the mirror holds is a snapshot: useful when
the buildbot is unreachable, not a replacement for it. Only the
platforms the mirror stocks resolve; anywhere else the fallback 404s and
the buildbot failure stands, as before.
The ROM table already pinned size and md5 per entry. That check moves
into the verify callback so a truncated transfer retries against the
mirror rather than simply failing, while a ROM that changed upstream is
still never installed -- its licence was verified against those bytes.
Verified: the FCEUmm core and all 20 ROMs installing from the mirror and
from their official sources, and a re-run correctly reporting everything already present without touching the network.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net