mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 11:25:56 +00:00
feat(races): ship client integration in Manager 0.6.9
This commit is contained in:
1 parent
d20d5a6410
commit
374a3f9c23
11 files changed
+118
-73
No files matched your search
@@ -203,20 +203,19 @@ pub fn set_enabled(root: &Path, meta: &Path, id: &str, on: bool) -> Result<()> {
|
||||
Some(lock)
|
||||
} else { None };
|
||||
if on { crate::realms::guard_module(root, id)?; }
|
||||
set_enabled_in(&catalog(), root, meta, id, on)?;
|
||||
if id == "custom-races" {
|
||||
if let Ok(meta_content) = fs::read_to_string(meta.join("install.json")) {
|
||||
if let Ok(install_meta) = serde_json::from_str::<crate::registry::InstallMeta>(&meta_content) {
|
||||
if let Some(cp) = install_meta.client_path {
|
||||
let client_path = PathBuf::from(cp);
|
||||
if client_path.is_dir() {
|
||||
let _ = crate::custom_races::set_client_patch_enabled(&client_path, on);
|
||||
crate::custom_races::set_client_patch_enabled(&client_path, on)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
set_enabled_in(&catalog(), root, meta, id, on)
|
||||
}
|
||||
|
||||
fn bot_enabled(root: &Path, e: &Entry) -> Result<bool> {
|
||||
|
||||
Reference in new issue
Block a user