From 7a02447abc7d51f56e8abf90200fdd442247b442 Mon Sep 17 00:00:00 2001 From: galister <3123227-galister@users.noreply.gitlab.com> Date: Thu, 19 Sep 2024 05:40:53 +0000 Subject: [PATCH] feat: install apk with -r -g; clarify wivrn server scale description --- src/ui/install_wivrn_box.rs | 2 +- src/ui/wivrn_conf_editor.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/install_wivrn_box.rs b/src/ui/install_wivrn_box.rs index aee2e27..ddf37f7 100644 --- a/src/ui/install_wivrn_box.rs +++ b/src/ui/install_wivrn_box.rs @@ -218,7 +218,7 @@ impl AsyncComponent for InstallWivrnBox { Ok(apk_path) => { self.set_install_wivrn_status(match async_process( "adb", - Some(&["install", apk_path.to_string_lossy().to_string().as_str()]), + Some(&["install", "-r", "-g", apk_path.to_string_lossy().to_string().as_str()]), None, ) .await diff --git a/src/ui/wivrn_conf_editor.rs b/src/ui/wivrn_conf_editor.rs index ffb5e30..534bf3b 100644 --- a/src/ui/wivrn_conf_editor.rs +++ b/src/ui/wivrn_conf_editor.rs @@ -98,7 +98,11 @@ impl SimpleComponent for WivrnConfEditor { set_description: "Warning: you likely don't need to change the default configuration, this is for advanced users only. Proceed at your own risk!\n\nWiVRn Configuration Documentation", add: scalegrp = &adw::PreferencesGroup { set_title: "Scale", - set_description: Some("Render resolution scale. 1.0 is 100%."), + set_description: Some(concat!("Foveation scale, 1.0 means no foveation. ", + "A value too high may overload your headset's decoder.\n", + "This does not affect game render resolution. ", + "Render resolution is set from within the Android app.", + )), add: scalex_row = &spin_row( "Scale X", None,