fix: skip managing active runtime for wivrn

This commit is contained in:
Gabriele Musco 2024-11-29 19:44:07 +01:00
commit 27ede860df
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -174,6 +174,8 @@ impl App {
);
return;
}
// wivrn takes care of replacing active_runtime.json
if prof.xrservice_type != XRServiceType::Wivrn {
if let Err(e) = set_current_active_runtime_to_profile(&prof) {
alert(
"Failed to start XR Service",
@ -184,6 +186,7 @@ impl App {
);
return;
}
}
if let Err(e) = set_current_openvrpaths_to_profile(&prof) {
alert(
"Failed to start XR Service",
@ -244,7 +247,10 @@ impl App {
}
pub fn restore_openxr_openvr_files(&self) {
let prof = self.get_selected_profile();
restore_runtime_entrypoint();
// wivrn should take care of this
if prof.xrservice_type != XRServiceType::Wivrn {
if let Err(e) = set_current_active_runtime_to_steam() {
alert(
"Could not restore Steam active runtime",
@ -252,6 +258,7 @@ impl App {
Some(&self.app_win.clone().upcast::<gtk::Window>()),
);
}
}
if let Err(e) = set_current_openvrpaths_to_steam() {
alert(
"Could not restore Steam openvrpaths",