Browse Source

[gamemode] default disable on msvc, move to UI category

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/353/head
lizzie 3 months ago
committed by Caio Oliveira
parent
commit
cde6b6fe73
No known key found for this signature in database GPG Key ID: 362DA3DC1901E080
  1. 10
      src/common/settings.h
  2. 1
      src/common/settings_common.h
  3. 2
      src/qt_common/config/shared_translation.cpp

10
src/common/settings.h

@ -621,8 +621,14 @@ struct Values {
true, true,
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};
#ifdef __unix__ #ifdef __unix__
SwitchableSetting<bool> gui_force_x11{linkage, false, "gui_force_x11", Category::Linux}; SwitchableSetting<bool> gui_force_x11{linkage, false, "gui_force_x11", Category::Linux};
Setting<bool> gui_hide_backend_warning{linkage, false, "gui_hide_backend_warning", Category::Linux}; Setting<bool> gui_hide_backend_warning{linkage, false, "gui_hide_backend_warning", Category::Linux};

1
src/common/settings_common.h

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

2
src/qt_common/config/shared_translation.cpp

@ -433,7 +433,7 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QObject* parent)
tr("Whether or not to check for updates upon startup.")); tr("Whether or not to check for updates upon startup."));
// Linux // Linux
INSERT(Settings, enable_gamemode, tr("Enable Gamemode"), QString());
INSERT(UISettings, enable_gamemode, tr("Enable Gamemode"), QString());
#ifdef __unix__ #ifdef __unix__
INSERT(Settings, gui_force_x11, tr("Force X11 as Graphics Backend"), QString()); INSERT(Settings, gui_force_x11, tr("Force X11 as Graphics Backend"), QString());
INSERT(Settings, gui_hide_backend_warning, QString(), QString()); INSERT(Settings, gui_hide_backend_warning, QString(), QString());

Loading…
Cancel
Save