Skip to content

Commit

Permalink
"Mess" with people's config by disabling single_threaded_loading if i…
Browse files Browse the repository at this point in the history
…t's enabled for some reason.
  • Loading branch information
IntQuant committed Dec 5, 2024
1 parent edf0ddf commit d56f990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions noita-proxy/src/bookkeeping/mod_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ fn enable_mod(saves_path: &Path) -> Result<(), Box<dyn Error>> {
// Certainly not the cleanest solution, but parsing that config properly is _hard_.
let config = fs::read_to_string(&shared_config_path)?;
let config = config.replace("mods_sandbox_enabled=\"1\"", "mods_sandbox_enabled=\"0\"");
let config = config.replace(
"single_threaded_loading=\"1\"",
"single_threaded_loading=\"0\"",
);
fs::write(&shared_config_path, config)?;

let mod_config_path = saves_path.join("save00/mod_config.xml");
Expand Down

0 comments on commit d56f990

Please sign in to comment.