mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
SteamTarget: option to edit refresh rate
This commit is contained in:
parent
8b2d4afaf3
commit
e6c01c77f3
@ -126,11 +126,15 @@ void SteamTarget::readIni()
|
||||
else if (childkey == "iUpdateRate") {
|
||||
bool isInt = false;
|
||||
update_rate_ = settings.value(childkey).toInt(&isInt);
|
||||
if (!isInt)
|
||||
update_rate_ = 5000;
|
||||
if (update_rate_ < 0)
|
||||
if (!isInt || update_rate_ < 0)
|
||||
update_rate_ = 5000;
|
||||
}
|
||||
else if (childkey == "iRefreshRate") {
|
||||
bool isInt = false;
|
||||
max_fps_ = settings.value(childkey).toInt(&isInt);
|
||||
if (!isInt || max_fps_ < 0)
|
||||
max_fps_ = 60;
|
||||
}
|
||||
}
|
||||
settings.endGroup();
|
||||
settings.beginGroup("LaunchGame");
|
||||
|
@ -6,6 +6,7 @@ bEnableControllers=1
|
||||
bUseDesktopConfig=0
|
||||
bHookSteam=0
|
||||
iUpdateRate=5000
|
||||
iRefreshRate=60
|
||||
version=515
|
||||
|
||||
[LaunchGame]
|
||||
|
Loading…
Reference in New Issue
Block a user