feat: slightly better config

This commit is contained in:
2025-02-25 02:01:24 +01:00
parent b7fe76b6ff
commit 43fd622322
7 changed files with 150 additions and 30 deletions

View File

@ -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);

View File

@ -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 {

View File

@ -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");
}
}