Skip to main content

record_configured

Function record_configured 

Source
pub fn record_configured(
    game_dir: &Path,
    files: &[String],
    ledger: &mut Ledger,
    watcher: &mut dyn Watcher,
) -> Result<(), ExecuteError>
Expand description

Puts the hashes of the files a game’s configuration step edited back into the ledger, or uninstall would read our own edit as someone else’s.

A file no package owns is logged, never adopted: the step cannot know whether something was there before it, and an uninstall could then delete it.