diff options
| author | 2023-08-26 19:15:00 -0400 | |
|---|---|---|
| committer | 2023-08-26 19:15:00 -0400 | |
| commit | 6c4abd23be375afda850661cdf164b65e52f8cb8 (patch) | |
| tree | 4245dfb837da484556040bb02915d0e7b53569c8 /src/android | |
| parent | Merge pull request #11359 from Kelebek1/check_suitable_backend (diff) | |
| parent | main: Fix docked mode button, clang 14 error (diff) | |
| download | yuzu-6c4abd23be375afda850661cdf164b65e52f8cb8.tar.gz yuzu-6c4abd23be375afda850661cdf164b65e52f8cb8.tar.xz yuzu-6c4abd23be375afda850661cdf164b65e52f8cb8.zip | |
Merge pull request #11356 from lat9nq/console-mode-pg
general,config-qt: Present Console Mode as an enum with separate options in game properties
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/jni/config.cpp | 5 | ||||
| -rw-r--r-- | src/android/app/src/main/jni/native.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/android/app/src/main/jni/config.cpp b/src/android/app/src/main/jni/config.cpp index 5e1f10f99..9de9bd93e 100644 --- a/src/android/app/src/main/jni/config.cpp +++ b/src/android/app/src/main/jni/config.cpp | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include "common/fs/path_util.h" | 11 | #include "common/fs/path_util.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/settings.h" | 13 | #include "common/settings.h" |
| 14 | #include "common/settings_enums.h" | ||
| 14 | #include "core/hle/service/acc/profile_manager.h" | 15 | #include "core/hle/service/acc/profile_manager.h" |
| 15 | #include "input_common/main.h" | 16 | #include "input_common/main.h" |
| 16 | #include "jni/config.h" | 17 | #include "jni/config.h" |
| @@ -144,7 +145,9 @@ void Config::ReadValues() { | |||
| 144 | Service::Account::MAX_USERS - 1); | 145 | Service::Account::MAX_USERS - 1); |
| 145 | 146 | ||
| 146 | // Disable docked mode by default on Android | 147 | // Disable docked mode by default on Android |
| 147 | Settings::values.use_docked_mode = config->GetBoolean("System", "use_docked_mode", false); | 148 | Settings::values.use_docked_mode.SetValue(config->GetBoolean("System", "use_docked_mode", false) |
| 149 | ? Settings::ConsoleMode::Docked | ||
| 150 | : Settings::ConsoleMode::Handheld); | ||
| 148 | 151 | ||
| 149 | const auto rng_seed_enabled = config->GetBoolean("System", "rng_seed_enabled", false); | 152 | const auto rng_seed_enabled = config->GetBoolean("System", "rng_seed_enabled", false); |
| 150 | if (rng_seed_enabled) { | 153 | if (rng_seed_enabled) { |
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp index 8b99d1d6e..7e17833a0 100644 --- a/src/android/app/src/main/jni/native.cpp +++ b/src/android/app/src/main/jni/native.cpp | |||
| @@ -420,7 +420,7 @@ public: | |||
| 420 | return false; | 420 | return false; |
| 421 | } | 421 | } |
| 422 | 422 | ||
| 423 | return !Settings::values.use_docked_mode.GetValue(); | 423 | return !Settings::IsDockedMode(); |
| 424 | } | 424 | } |
| 425 | 425 | ||
| 426 | void SetDeviceType([[maybe_unused]] int index, int type) { | 426 | void SetDeviceType([[maybe_unused]] int index, int type) { |