feat: slightly better config
This commit is contained in:
@ -139,7 +139,7 @@ pub async fn init_profile(
|
||||
pub async fn set_cfg(
|
||||
state: State<'_, Mutex<AppData>>,
|
||||
key: String,
|
||||
value: String
|
||||
value: serde_json::Value
|
||||
) -> Result<(), ()> {
|
||||
log::debug!("invoke: sync_cfg({}, {})", key, value);
|
||||
|
||||
|
@ -14,7 +14,7 @@ pub struct Profile {
|
||||
pub mods: HashSet<PkgKey>,
|
||||
pub wine_runtime: Option<PathBuf>,
|
||||
pub wine_prefix: Option<PathBuf>,
|
||||
pub cfg: HashMap<String, String>
|
||||
pub cfg: HashMap<String, serde_json::Value>
|
||||
}
|
||||
|
||||
impl Profile {
|
||||
|
@ -57,7 +57,7 @@ pub fn start(p: &Profile, app: AppHandle) -> Result<()> {
|
||||
.stderr(Stdio::null());
|
||||
|
||||
if let Some(v) = p.cfg.get("intel") {
|
||||
if v == "true" {
|
||||
if v == true {
|
||||
amd_builder.env("OPENSSL_ia32cap", ":~0x20000000");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user