Skip to main content

Module execute

Module execute 

Source
Expand description

Stage files from a temporary extraction directory into a mod’s store directory, according to an InstallPlan.

Execution is deliberately dumb: it copies files, records their paths, and returns the manifest. It does not touch the database — the caller wires the returned Vec<StagedFile> into ModdeDb::record_install.

Variants that need user input (Fomod with no config, Bain with no selection) return InstallerError::RequiresUserInput so the UI can route to its wizard.

Functions§

execute
Execute plan, staging files from extracted_dir into store_mod_dir. On success, mutates plan.staged_files with the final manifest and returns it by value for the caller to persist.