fix: proper runtime path in launch options for wivrn

This commit is contained in:
Gabriele Musco 2023-06-21 23:15:29 +02:00
parent 121a69a04f
commit e61e1308a5
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -40,10 +40,14 @@ impl Profile {
pub fn get_steam_launch_options(&self) -> String {
let mut opts = vec![];
opts.push(format!(
"XR_RUNTIME_JSON={prefix}/share/openxr/1/openxr_monado.json",
"XR_RUNTIME_JSON={prefix}/share/openxr/1/openxr_{runtime}.json",
prefix = match self.prefix.as_str() {
SYSTEM_PREFIX => BWRAP_SYSTEM_PREFIX,
other => other,
},
runtime = match self.xrservice_type {
XRServiceType::Wivrn => "wivrn",
XRServiceType::Monado => "monado",
}
));
opts.push(format!(