Skip to main content

check_files

Function check_files 

Source
pub async fn check_files(
    bundle: &[AssetItem],
    event_tx: &Sender<LaunchEvent>,
    concurrency: u32,
) -> Result<Vec<String>, LaunchError>
Expand description

Verify the SHA-1 of every Asset / NativeAsset that is present on disk.

Emits LaunchEvent::Check events and returns the paths of any files whose digest does not match the expected value. Up to concurrency files are hashed in parallel; use a lower value than download_concurrency to avoid seek thrashing on HDDs.