Added conditions for displaying the toggle and related tooltips depending if linux and if gamemode is installed on system

This commit is contained in:
ADAS2024 2025-06-17 19:17:03 -04:00 committed by adas20
parent 2e0330b407
commit f1e8bb191d
3 changed files with 17 additions and 5 deletions

View file

@ -1848,10 +1848,15 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
m_emu_settings->EnhanceCheckBox(ui->useNativeInterface, emu_settings_type::UseNativeInterface);
SubscribeTooltip(ui->useNativeInterface, tooltips.settings.use_native_interface);
#ifdef GAMEMODE_AVAILABLE
#if defined(__linux__)
ui->enableGamemode->setVisible(true);
#endif
#if defined(GAMEMODE_AVAILABLE)
ui->enableGamemode->setEnabled(true);
m_emu_settings->EnhanceCheckBox(ui->enableGamemode, emu_settings_type::EnableGamemode);
SubscribeTooltip(ui->enableGamemode, tooltips.settings.enable_gamemode);
#else
SubscribeTooltip(ui->enableGamemode, tooltips.settings.no_gamemode);
#endif
m_emu_settings->EnhanceCheckBox(ui->showShaderCompilationHint, emu_settings_type::ShowShaderCompilationHint);

View file

@ -43,8 +43,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>821</width>
<height>716</height>
<width>843</width>
<height>865</height>
</rect>
</property>
<property name="sizePolicy">
@ -54,7 +54,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
<number>7</number>
</property>
<widget class="QWidget" name="coreTab">
<attribute name="title">
@ -3024,6 +3024,12 @@
</item>
<item>
<widget class="QCheckBox" name="enableGamemode">
<property name="enabled">
<bool>false</bool>
</property>
<property name="visible">
<bool>false</bool>
</property>
<property name="text">
<string>Enable GameMode</string>
</property>

View file

@ -130,7 +130,8 @@ public:
// emulator
// GAMEMODE CHANGES
const QString enable_gamemode = tr("Activate Feral Interactive's GameMode.\nThis is a series of CPU and GPU optimizations and can potentially benefit game performance on some systems.\nIf unsure, leave off. \n");
const QString enable_gamemode = tr("Activate Feral Interactive's GameMode.\nThis is a series of CPU and GPU optimizations and can potentially benefit game performance on some systems.");
const QString no_gamemode = tr("This requires Feral Interactive's GameMode to be installed.\nGameMode is a series of CPU and GPU optimizations and can potentially benefit game performance on some systems.\nTo install GameMode for your specific Linux distribution, go to the GitHub page:https://github.com/FeralInteractive/gamemode");
//
const QString exit_on_stop = tr("Automatically close RPCS3 when closing a game, or when a game closes itself.");