Skip to main content

set_enabled_batch

Function set_enabled_batch 

Source
pub fn set_enabled_batch(
    target_dir: &Path,
    eco: &Ecosystem,
    game: &str,
    batch: &ToggleBatch,
) -> Result<BatchOutcome>
Expand description

Applies batch, reporting per-item outcomes.

One mod’s failure does not abort the rest: returning early would leave a half-applied toggle with nothing reported. Applies batch.enabled, the sense it was planned for, rather than taking its own enabled argument, so the executor cannot disagree with the plan it is executing.