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

Default hooking Steam to false

This commit is contained in:
Peter Repukat 2018-04-22 14:21:07 +02:00
parent 1c97d53aee
commit e76fde111f
4 changed files with 9 additions and 7 deletions

View File

@ -63,7 +63,7 @@ void GloSC::writeIni(QString entryName) const
settings.setValue("bEnableOverlay", 0 + ui_.cbOverlay->isChecked());
settings.setValue("bEnableControllers", 0 + ui_.cbControllers->isChecked());
settings.setValue("bUseDesktopConfig", 0 + ui_.cbUseDesktop->isChecked());
settings.setValue("bHookSteam", hook_steam_);
settings.setValue("bHookSteam", 0 + hook_steam_);
settings.setValue("version", GLOSC_VERSION);
settings.endGroup();
@ -96,10 +96,15 @@ void GloSC::updateTargetsToNewVersion()
QSettings settings("./targets/" + name + ".ini", QSettings::IniFormat);
settings.beginGroup("BaseConf");
const unsigned int version = settings.value("version").toInt();
hook_steam_ = settings.value("bHookSteam").toBool();
settings.endGroup();
if (version < GLOSC_VERSION || version >= 0x500)
{
if (version < GLOSC_VERSION && GLOSC_VERSION > 0x203)
hook_steam_ = false;
on_pbSave_clicked();
}
}
}
@ -519,9 +524,6 @@ void GloSC::on_pbUWP_clicked()
QList<UWPPair> pairs;
//QString AppName;
//QString AppUMId;
QStringList AppNames;
QStringList AppUMIds;

View File

@ -71,7 +71,7 @@ private:
void animate(int to);
bool hook_steam_ = true;
bool hook_steam_ = false;
bool first_launch_ = false;

View File

@ -68,7 +68,7 @@ private:
std::unique_ptr<VirtualControllerThread> controller_thread_;
//Settings from .ini file
bool hook_steam_ = true;
bool hook_steam_ = false;
bool enable_overlay_ = true;
bool enable_overlay_only_config_ = false;
bool enable_controllers_ = true;

View File

@ -4,7 +4,7 @@ bEnableOverlay=1
bEnableOverlayOnlyConfig=0
bEnableControllers=1
bUseDesktopConfig=0
bHookSteam=1
bHookSteam=0
iUpdateRate=5000
version=515