2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-03 09:40:18 +00:00

GloSC-Main: User setting to disable Steam hook

This commit is contained in:
Peter Repukat 2016-12-04 22:05:28 +01:00
parent f3aa9b2d67
commit 4ba0b3a7e7
2 changed files with 20 additions and 2 deletions

View File

@ -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();

View File

@ -247,6 +247,23 @@
(Disable for Uplay-games!)</string>
</property>
</widget>
<widget class="QCheckBox" name="cbHookSteam">
<property name="geometry">
<rect>
<x>10</x>
<y>140</y>
<width>371</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Hook Steam
Enforces bindings by hooking into Steam</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</widget>
</widget>
</widget>