feat!: LH_DRIVER=steamvr deprecated, use STEAMVR_LH_ENABLE=true instead

This commit is contained in:
GabMus 2023-12-14 17:19:14 +00:00
parent ceffdcad9b
commit 62f19c7c72

View file

@ -1,4 +1,7 @@
use crate::{profile::Profile, withclones};
use crate::{
profile::{LighthouseDriver, Profile},
withclones,
};
use super::{
job::{CmdWorkerData, FuncWorkerOut, WorkerJob},
@ -161,10 +164,15 @@ impl InternalJobWorker {
) -> relm4::WorkerHandle<InternalJobWorker> {
let mut env = prof.environment.clone();
if !env.contains_key("LH_DRIVER") {
env.insert(
"LH_DRIVER".into(),
prof.lighthouse_driver.to_string().to_lowercase(),
);
match prof.lighthouse_driver {
// don't set LH_DRIVER for steamvr driver, set this instead
LighthouseDriver::SteamVR => {
env.insert("STEAMVR_LH_ENABLE".into(), "true".into());
}
d => {
env.insert("LH_DRIVER".into(), d.to_string().to_lowercase());
}
}
}
let mut launch_opts = prof.xrservice_launch_options.trim();
let debug_launch_opts = if debug {