Expand description
Download state and management.
DownloadJob holds per-download progress/status.
DownloadManager owns the shared job list and spawns background tasks.
This module handles downloading files from the RomM server, including resume support and progress tracking.
Structs§
- Download
Job - A single background download job (for one ROM).
- Download
Manager - Owns the shared download list and spawns background download tasks.
- Extras
Item Result - Outcome of one item inside an
ExtrasJob. - Extras
Job - One queued extras batch for a parent ROM (related files + cover + manual).
Enums§
- Download
Status - High-level status of a single download.
- Extras
JobStatus - Terminal status for a composite extras download.
Functions§
- download_
directory - Backward-compatible default used by legacy CLI download code.
- extract_
zip_ archive - Extract a ZIP archive into
destination_dir. - platform_
download_ slug - Filesystem slug used for auto-mode console subfolders.
- prepare_
download_ target_ destination - resolve_
console_ roms_ dir - Resolve the directory where ROM files for
romshould be stored. - resolve_
console_ save_ dir - Resolve the directory where save files for a console should be stored.
- resolve_
download_ directory - Directory for ROM storage (
ROMM_ROMS_DIR,ROMM_DOWNLOAD_DIR, or configured path). - resolve_
game_ save_ dir - Resolve the directory where a specific game’s saves should be downloaded.
- unique_
zip_ path - Pick
stem.zip, thenstem__2.zip,stem__3.zip, … until the path does not exist. - validate_
configured_ download_ directory - Validate configured download path without env override fallback.