aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/global/MinecraftPage.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-09-05 17:45:17 +0200
committerGitHub <noreply@github.com>2022-09-05 17:45:17 +0200
commit8e3356f11a81cba394f57567e7521c3ccc2c3afa (patch)
tree12c44b9a4eeb96a63e433dd88b8eba5d6c45ac8b /launcher/ui/pages/global/MinecraftPage.cpp
parent2f167b1512dc0c3b80731ae412d55ee897da14fd (diff)
parentd82bb29919d1cc6a9ead4a4e4a18d7b02c5221eb (diff)
downloadPrismLauncher-8e3356f11a81cba394f57567e7521c3ccc2c3afa.tar.gz
PrismLauncher-8e3356f11a81cba394f57567e7521c3ccc2c3afa.tar.bz2
PrismLauncher-8e3356f11a81cba394f57567e7521c3ccc2c3afa.zip
Merge pull request #1034 from Scrumplex/detect-performance-features
Diffstat (limited to 'launcher/ui/pages/global/MinecraftPage.cpp')
-rw-r--r--launcher/ui/pages/global/MinecraftPage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/MinecraftPage.cpp b/launcher/ui/pages/global/MinecraftPage.cpp
index e3ac7e7c..cc597fe0 100644
--- a/launcher/ui/pages/global/MinecraftPage.cpp
+++ b/launcher/ui/pages/global/MinecraftPage.cpp
@@ -122,6 +122,16 @@ void MinecraftPage::loadSettings()
ui->perfomanceGroupBox->setVisible(false);
#endif
+ if (!(APPLICATION->capabilities() & Application::SupportsGameMode)) {
+ ui->enableFeralGamemodeCheck->setDisabled(true);
+ ui->enableFeralGamemodeCheck->setToolTip(tr("Feral Interactive's GameMode could not be found on your system."));
+ }
+
+ if (!(APPLICATION->capabilities() & Application::SupportsMangoHud)) {
+ ui->enableMangoHud->setDisabled(true);
+ ui->enableMangoHud->setToolTip(tr("MangoHud could not be found on your system."));
+ }
+
ui->showGameTime->setChecked(s->get("ShowGameTime").toBool());
ui->showGlobalGameTime->setChecked(s->get("ShowGlobalGameTime").toBool());
ui->recordGameTime->setChecked(s->get("RecordGameTime").toBool());