From e662fe99ac0a09dbd692137774abf29b66320e25 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 13 Sep 2025 20:48:40 +0000 Subject: [PATCH] [gamemode] default disable on msvc, move to UI category Signed-off-by: lizzie --- src/common/settings.h | 10 ++++++++-- src/common/settings_common.h | 1 - src/qt_common/shared_translation.cpp | 5 ++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/common/settings.h b/src/common/settings.h index 8605445837..7b676cb497 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -641,8 +641,14 @@ struct Values { true, true}; - // Linux - SwitchableSetting enable_gamemode{linkage, true, "enable_gamemode", Category::Linux}; + // Linux/MinGW may support (requires libdl support) + SwitchableSetting enable_gamemode{linkage, +#ifndef _MSC_VER + true, +#else + false, +#endif + "enable_gamemode", Category::UiGeneral}; // Controls InputSetting> players; diff --git a/src/common/settings_common.h b/src/common/settings_common.h index af16ec692b..7902cbf945 100644 --- a/src/common/settings_common.h +++ b/src/common/settings_common.h @@ -44,7 +44,6 @@ enum class Category : u32 { Multiplayer, Services, Paths, - Linux, LibraryApplet, MaxEnum, }; diff --git a/src/qt_common/shared_translation.cpp b/src/qt_common/shared_translation.cpp index cdc05e60e0..8da090e6c7 100644 --- a/src/qt_common/shared_translation.cpp +++ b/src/qt_common/shared_translation.cpp @@ -450,7 +450,10 @@ std::unique_ptr InitializeTranslations(QObject* parent) tr("Whether or not to check for updates upon startup.")); // Linux - INSERT(Settings, enable_gamemode, tr("Enable Gamemode"), QString()); + INSERT(UISettings, + enable_gamemode, + tr("Enable Gamemode"), + QString()); // Ui Debugging