Skip to main content

Module download_run

Module download_run 

Source

Structs§

DownloadJob
Everything scene 4b’s run needs, owned, because it crosses a thread. It knows no game folder: the download only fills the cache.

Constants§

REPORT_EVERY 🔒
A 64 KiB chunk arrives hundreds of times a second, and a post per chunk would keep the UI thread redrawing instead of responding.

Functions§

run_download
Scene 4b’s run: fetch what is missing and verify it, writing nothing to the game folder, so the cache can be filled now and installed from later. A package that still fails after its retries is recorded and the rest carry on. The worker opens its own handle on the cache; the UI reopens its own afterwards.