From f1e8bb191d4976d46d3e1bef5dd1314abc48b965 Mon Sep 17 00:00:00 2001 From: ADAS2024 Date: Tue, 17 Jun 2025 19:17:03 -0400 Subject: [PATCH] Added conditions for displaying the toggle and related tooltips depending if linux and if gamemode is installed on system --- rpcs3/rpcs3qt/settings_dialog.cpp | 7 ++++++- rpcs3/rpcs3qt/settings_dialog.ui | 12 +++++++++--- rpcs3/rpcs3qt/tooltips.h | 3 ++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 10e875d791..daa72ccd5c 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -1848,10 +1848,15 @@ settings_dialog::settings_dialog(std::shared_ptr 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); diff --git a/rpcs3/rpcs3qt/settings_dialog.ui b/rpcs3/rpcs3qt/settings_dialog.ui index 6922ec7332..2c57a2cf51 100644 --- a/rpcs3/rpcs3qt/settings_dialog.ui +++ b/rpcs3/rpcs3qt/settings_dialog.ui @@ -43,8 +43,8 @@ 0 0 - 821 - 716 + 843 + 865 @@ -54,7 +54,7 @@ - 0 + 7 @@ -3024,6 +3024,12 @@ + + false + + + false + Enable GameMode diff --git a/rpcs3/rpcs3qt/tooltips.h b/rpcs3/rpcs3qt/tooltips.h index f7f9fa1796..23cc5808e0 100644 --- a/rpcs3/rpcs3qt/tooltips.h +++ b/rpcs3/rpcs3qt/tooltips.h @@ -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.");