From f322763197a8095e29eb4c6c6c82e3e7c92127ab Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Sun, 23 Apr 2023 00:15:34 +0200 Subject: [PATCH] feat(star-rail): removed unused `patch.apply_xlua` property --- src/star_rail/config/schema/patch.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/star_rail/config/schema/patch.rs b/src/star_rail/config/schema/patch.rs index 9a20a99..ac86cbe 100644 --- a/src/star_rail/config/schema/patch.rs +++ b/src/star_rail/config/schema/patch.rs @@ -9,7 +9,6 @@ use crate::star_rail::consts::launcher_dir; pub struct Patch { pub path: PathBuf, pub servers: Vec, - pub apply_xlua: bool, pub root: bool } @@ -25,8 +24,6 @@ impl Default for Patch { String::from("https://notabug.org/Krock/dawn") ], - apply_xlua: true, - // Disable root requirement for patching if we're running launcher in flatpak root: !PathBuf::from("/.flatpak-info").exists() } @@ -64,11 +61,6 @@ impl From<&JsonValue> for Patch { None => default.servers }, - apply_xlua: match value.get("apply_xlua") { - Some(value) => value.as_bool().unwrap_or(default.apply_xlua), - None => default.apply_xlua - }, - root: match value.get("root") { Some(value) => value.as_bool().unwrap_or(default.root), None => default.root