mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +00:00
fix: skip managing active runtime for wivrn
This commit is contained in:
parent
3f846b26e0
commit
27ede860df
1 changed files with 22 additions and 15 deletions
|
@ -174,6 +174,8 @@ impl App {
|
||||||
);
|
);
|
||||||
return;
|
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) {
|
if let Err(e) = set_current_active_runtime_to_profile(&prof) {
|
||||||
alert(
|
alert(
|
||||||
"Failed to start XR Service",
|
"Failed to start XR Service",
|
||||||
|
@ -184,6 +186,7 @@ impl App {
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if let Err(e) = set_current_openvrpaths_to_profile(&prof) {
|
if let Err(e) = set_current_openvrpaths_to_profile(&prof) {
|
||||||
alert(
|
alert(
|
||||||
"Failed to start XR Service",
|
"Failed to start XR Service",
|
||||||
|
@ -244,7 +247,10 @@ impl App {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn restore_openxr_openvr_files(&self) {
|
pub fn restore_openxr_openvr_files(&self) {
|
||||||
|
let prof = self.get_selected_profile();
|
||||||
restore_runtime_entrypoint();
|
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() {
|
if let Err(e) = set_current_active_runtime_to_steam() {
|
||||||
alert(
|
alert(
|
||||||
"Could not restore Steam active runtime",
|
"Could not restore Steam active runtime",
|
||||||
|
@ -252,6 +258,7 @@ impl App {
|
||||||
Some(&self.app_win.clone().upcast::<gtk::Window>()),
|
Some(&self.app_win.clone().upcast::<gtk::Window>()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if let Err(e) = set_current_openvrpaths_to_steam() {
|
if let Err(e) = set_current_openvrpaths_to_steam() {
|
||||||
alert(
|
alert(
|
||||||
"Could not restore Steam openvrpaths",
|
"Could not restore Steam openvrpaths",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue