mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-16 07:19:26 +00:00
fix: use let err instead of match in restore xr files func
This commit is contained in:
parent
f1e8a010c8
commit
2217f84ff4
1 changed files with 6 additions and 8 deletions
14
src/main.rs
14
src/main.rs
|
@ -50,18 +50,16 @@ fn restore_steam_xr_files() {
|
|||
let openvrpaths = get_current_openvrpaths();
|
||||
if let Some(ar) = active_runtime {
|
||||
if !file_builders::active_runtime_json::is_steam(&ar) {
|
||||
match set_current_active_runtime_to_steam() {
|
||||
Ok(_) => {}
|
||||
Err(e) => eprintln!("Warning: failed to restore active runtime to steam: {e}"),
|
||||
};
|
||||
if let Err(e) = set_current_active_runtime_to_steam() {
|
||||
eprintln!("Warning: failed to restore active runtime to steam: {e}");
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(ovrp) = openvrpaths {
|
||||
if !file_builders::openvrpaths_vrpath::is_steam(&ovrp) {
|
||||
match set_current_openvrpaths_to_steam() {
|
||||
Ok(_) => {}
|
||||
Err(e) => eprintln!("Warning: failed to restore openvrpaths to steam: {e}"),
|
||||
};
|
||||
if let Err(e) = set_current_openvrpaths_to_steam() {
|
||||
eprintln!("Warning: failed to restore openvrpaths to steam: {e}");
|
||||
}
|
||||
}
|
||||
}
|
||||
restore_runtime_entrypoint();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue