mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Added conditions for displaying the toggle and related tooltips depending if linux and if gamemode is installed on system
This commit is contained in:
parent
2e0330b407
commit
f1e8bb191d
3 changed files with 17 additions and 5 deletions
|
@ -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);
|
m_emu_settings->EnhanceCheckBox(ui->useNativeInterface, emu_settings_type::UseNativeInterface);
|
||||||
SubscribeTooltip(ui->useNativeInterface, tooltips.settings.use_native_interface);
|
SubscribeTooltip(ui->useNativeInterface, tooltips.settings.use_native_interface);
|
||||||
|
|
||||||
#ifdef GAMEMODE_AVAILABLE
|
#if defined(__linux__)
|
||||||
ui->enableGamemode->setVisible(true);
|
ui->enableGamemode->setVisible(true);
|
||||||
|
#endif
|
||||||
|
#if defined(GAMEMODE_AVAILABLE)
|
||||||
|
ui->enableGamemode->setEnabled(true);
|
||||||
m_emu_settings->EnhanceCheckBox(ui->enableGamemode, emu_settings_type::EnableGamemode);
|
m_emu_settings->EnhanceCheckBox(ui->enableGamemode, emu_settings_type::EnableGamemode);
|
||||||
SubscribeTooltip(ui->enableGamemode, tooltips.settings.enable_gamemode);
|
SubscribeTooltip(ui->enableGamemode, tooltips.settings.enable_gamemode);
|
||||||
|
#else
|
||||||
|
SubscribeTooltip(ui->enableGamemode, tooltips.settings.no_gamemode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_emu_settings->EnhanceCheckBox(ui->showShaderCompilationHint, emu_settings_type::ShowShaderCompilationHint);
|
m_emu_settings->EnhanceCheckBox(ui->showShaderCompilationHint, emu_settings_type::ShowShaderCompilationHint);
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>821</width>
|
<width>843</width>
|
||||||
<height>716</height>
|
<height>865</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>7</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="coreTab">
|
<widget class="QWidget" name="coreTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
@ -3024,6 +3024,12 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="enableGamemode">
|
<widget class="QCheckBox" name="enableGamemode">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="visible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Enable GameMode</string>
|
<string>Enable GameMode</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -130,7 +130,8 @@ public:
|
||||||
// emulator
|
// emulator
|
||||||
|
|
||||||
// GAMEMODE CHANGES
|
// 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.");
|
const QString exit_on_stop = tr("Automatically close RPCS3 when closing a game, or when a game closes itself.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue