Skip to main content

DEFAULT_MODS_DIR_NAME

Constant DEFAULT_MODS_DIR_NAME 

Source
pub const DEFAULT_MODS_DIR_NAME: &str = ".supreme/mods";
Expand description

The on-disk mods directory, relative to the game’s root directory. Layout:

  • <mods_dir>/mods.json, the single state file described by ModsState.
  • <mods_dir>/<mod_name>/mod.json, that mod’s own metadata, rules, parameters, and default values for them, see crate::mod_config::ModConfig. This is the author’s distributable definition: reinstalling or updating a mod means replacing this whole file (and the mod’s other assets), which is exactly why per-user overrides live in ModsState instead, an update can safely replace even a mod’s defaults without touching what a person has personally changed.