[gamemode] default disable on msvc, move to UI category
Some checks failed
eden-license / license-header (pull_request) Failing after 16s

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-13 20:48:40 +00:00
parent 217943b1ac
commit e662fe99ac
Signed by: Lizzie
GPG key ID: 00287378CADCAB13
3 changed files with 12 additions and 4 deletions

View file

@ -641,8 +641,14 @@ struct Values {
true,
true};
// Linux
SwitchableSetting<bool> enable_gamemode{linkage, true, "enable_gamemode", Category::Linux};
// Linux/MinGW may support (requires libdl support)
SwitchableSetting<bool> enable_gamemode{linkage,
#ifndef _MSC_VER
true,
#else
false,
#endif
"enable_gamemode", Category::UiGeneral};
// Controls
InputSetting<std::array<PlayerInput, 10>> players;

View file

@ -44,7 +44,6 @@ enum class Category : u32 {
Multiplayer,
Services,
Paths,
Linux,
LibraryApplet,
MaxEnum,
};

View file

@ -450,7 +450,10 @@ std::unique_ptr<TranslationMap> 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