summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-23 04:00:28 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-23 04:00:28 +0200
commit75f5b3177dc97af9342e958ec4fa7b353b759aaf (patch)
treecbafdae37d7b94f71c7b1d4a17f7c10cd446499f /src/android/app
parentgeneral: Use console mode helper across project (diff)
downloadyuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.tar
yuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.tar.gz
yuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.tar.bz2
yuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.tar.lz
yuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.tar.xz
yuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.tar.zst
yuzu-75f5b3177dc97af9342e958ec4fa7b353b759aaf.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/jni/config.cpp5
1 files changed, 4 insertions, 1 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 @@
#include "common/fs/path_util.h"
#include "common/logging/log.h"
#include "common/settings.h"
+#include "common/settings_enums.h"
#include "core/hle/service/acc/profile_manager.h"
#include "input_common/main.h"
#include "jni/config.h"
@@ -144,7 +145,9 @@ void Config::ReadValues() {
Service::Account::MAX_USERS - 1);
// Disable docked mode by default on Android
- Settings::values.use_docked_mode = config->GetBoolean("System", "use_docked_mode", false);
+ Settings::values.use_docked_mode.SetValue(config->GetBoolean("System", "use_docked_mode", false)
+ ? Settings::ConsoleMode::Docked
+ : Settings::ConsoleMode::Handheld);
const auto rng_seed_enabled = config->GetBoolean("System", "rng_seed_enabled", false);
if (rng_seed_enabled) {