From 4ba0b3a7e7073f3c0d50d290474f68a952562cd6 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 4 Dec 2016 22:05:28 +0100 Subject: [PATCH] GloSC-Main: User setting to disable Steam hook --- GloSC/GloSC.cpp | 5 +++-- GloSC/GloSC.ui | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/GloSC/GloSC.cpp b/GloSC/GloSC.cpp index 73a2c29..d089cee 100644 --- a/GloSC/GloSC.cpp +++ b/GloSC/GloSC.cpp @@ -54,7 +54,7 @@ void GloSC::writeIni(QString entryName) settings.setValue("bEnableOverlay", 0 + ui.cbOverlay->isChecked()); settings.setValue("bEnableControllers", 0 + ui.cbControllers->isChecked()); - settings.setValue("bHookSteam", 1); + settings.setValue("bHookSteam", 0 + ui.cbHookSteam->isChecked()); settings.setValue("version", GLOSC_VERSION); settings.endGroup(); @@ -201,7 +201,7 @@ void GloSC::on_pbAddToSteam_clicked() if (!shortcutsFile.exists()) { - QMessageBox::information(this, "GloSC", "Couldn't detect Steam shortcuts file!", QMessageBox::Ok); + QMessageBox::information(this, "GloSC", "Couldn't detect Steam shortcuts file!\nSteam must be running for it to be detected", QMessageBox::Ok); return; } if (!shortcutsFile.open(QFile::ReadWrite)) @@ -424,6 +424,7 @@ void GloSC::on_lwInstances_currentRowChanged(int row) ui.cbOverlay->setChecked(settings.value("bEnableOverlay").toBool()); ui.cbControllers->setChecked(settings.value("bEnableControllers").toBool()); + ui.cbHookSteam->setChecked(settings.value("bHookSteam").toBool()); settings.endGroup(); diff --git a/GloSC/GloSC.ui b/GloSC/GloSC.ui index 558d357..ad0ae0c 100644 --- a/GloSC/GloSC.ui +++ b/GloSC/GloSC.ui @@ -247,6 +247,23 @@ (Disable for Uplay-games!) + + + + 10 + 140 + 371 + 51 + + + + Hook Steam +Enforces bindings by hooking into Steam + + + true + +