pub fn load_mods_state(mods_dir: &Path) -> Result<ModsState, HookConfigError>
Reads ModsState from <mods_dir>/mods.json. A missing file reads as a fresh, empty state rather than an error, the common state before .supreme/mods/ has ever been created, e.g. right after a fresh install.
ModsState
<mods_dir>/mods.json
.supreme/mods/
Returns an error if the file exists but isn’t valid JSON.