feat(star-rail): removed unused patch.apply_xlua
property
This commit is contained in:
parent
ed246f079b
commit
f322763197
1 changed files with 0 additions and 8 deletions
|
@ -9,7 +9,6 @@ use crate::star_rail::consts::launcher_dir;
|
|||
pub struct Patch {
|
||||
pub path: PathBuf,
|
||||
pub servers: Vec<String>,
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue