Skip to content

Commit ec3750c

Browse files
feat: Prevent mods with plugins to be installed (#438)
This is a temporary measure until a proper implementation exists that properly warns user before installing plugin
1 parent a2b450d commit ec3750c

File tree

1 file changed

+9
-0
lines changed
  • src-tauri/src/mod_management

1 file changed

+9
-0
lines changed

src-tauri/src/mod_management/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,15 @@ fn fc_sanity_check(input: &&fs::File) -> bool {
494494
}
495495
}
496496
}
497+
498+
if file_path.starts_with("plugins/") {
499+
if let Some(name) = file_path.file_name() {
500+
if name.to_str().unwrap().contains(".dll") {
501+
log::warn!("Plugin detected, skipping");
502+
return false; // We disallow plugins for now
503+
}
504+
}
505+
}
497506
}
498507

499508
has_mods && mod_json_exists

0 commit comments

Comments
 (0)