mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
fix: point to wivrn shared object when building active runtime json (#34)
This commit is contained in:
parent
dd3eedba3c
commit
988b104f7d
1 changed files with 9 additions and 2 deletions
|
@ -3,7 +3,7 @@ use crate::{
|
|||
deserialize_file, get_writer, get_xdg_config_dir, get_xdg_data_dir, set_file_radonly,
|
||||
},
|
||||
paths::SYSTEM_PREFIX,
|
||||
profile::Profile,
|
||||
profile::{Profile, XRServiceType},
|
||||
};
|
||||
use expect_dialog::ExpectDialog;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
@ -81,7 +81,14 @@ fn build_profile_active_runtime(profile: Profile) -> ActiveRuntime {
|
|||
runtime: ActiveRuntimeInnerRuntime {
|
||||
name: None,
|
||||
valve_runtime_is_steamvr: None,
|
||||
library_path: format!("{prefix}/lib/libopenxr_monado.so", prefix = profile.prefix),
|
||||
library_path: format!(
|
||||
"{prefix}/lib/libopenxr_{xrservice}.so",
|
||||
prefix = profile.prefix,
|
||||
xrservice = match profile.xrservice_type {
|
||||
XRServiceType::Monado => "monado",
|
||||
XRServiceType::Wivrn => "wivrn",
|
||||
}
|
||||
),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue