diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-21 22:33:56 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-22 22:07:53 +0200 |
commit | 7f8335f4ae4c87764faf91c1d866bded95d1e6ad (patch) | |
tree | 19508b8027a79e0f0c743e3f8ec82cbf00bce846 /src | |
parent | shared_translation: Define use_docked_mode texts (diff) | |
download | yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.tar yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.tar.gz yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.tar.bz2 yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.tar.lz yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.tar.xz yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.tar.zst yuzu-7f8335f4ae4c87764faf91c1d866bded95d1e6ad.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/configuration/configure_per_game.cpp | 8 | ||||
-rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_per_game.cpp b/src/yuzu/configuration/configure_per_game.cpp index 4f9e8db08..e371f902e 100644 --- a/src/yuzu/configuration/configure_per_game.cpp +++ b/src/yuzu/configuration/configure_per_game.cpp @@ -18,6 +18,7 @@ #include "common/fs/fs_util.h" #include "common/settings_enums.h" +#include "common/settings_input.h" #include "configuration/shared_widget.h" #include "core/core.h" #include "core/file_sys/control_metadata.h" @@ -98,6 +99,13 @@ void ConfigurePerGame::ApplyConfiguration() { addons_tab->ApplyConfiguration(); input_tab->ApplyConfiguration(); + if (Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked && + Settings::values.players.GetValue()[0].controller_type == + Settings::ControllerType::Handheld) { + Settings::values.use_docked_mode.SetValue(Settings::ConsoleMode::Handheld); + Settings::values.use_docked_mode.SetGlobal(true); + } + system.ApplySettings(); Settings::LogSettings(); diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index c4833f4e7..0c8e5c8b4 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp @@ -106,6 +106,11 @@ void ConfigureSystem::Setup(const ConfigurationShared::Builder& builder) { push(Settings::values.linkage.by_category[Settings::Category::System]); for (auto setting : settings) { + if (setting->Id() == Settings::values.use_docked_mode.Id() && + Settings::IsConfiguringGlobal()) { + continue; + } + ConfigurationShared::Widget* widget = builder.BuildWidget(setting, apply_funcs); if (widget == nullptr) { |