2
0
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:
Peter Repukat 2018-04-22 14:32:08 +02:00
parent 8b2d4afaf3
commit e6c01c77f3
2 changed files with 8 additions and 3 deletions

View File

@ -126,11 +126,15 @@ void SteamTarget::readIni()
else if (childkey == "iUpdateRate") { else if (childkey == "iUpdateRate") {
bool isInt = false; bool isInt = false;
update_rate_ = settings.value(childkey).toInt(&isInt); update_rate_ = settings.value(childkey).toInt(&isInt);
if (!isInt) if (!isInt || update_rate_ < 0)
update_rate_ = 5000;
if (update_rate_ < 0)
update_rate_ = 5000; 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.endGroup();
settings.beginGroup("LaunchGame"); settings.beginGroup("LaunchGame");

View File

@ -6,6 +6,7 @@ bEnableControllers=1
bUseDesktopConfig=0 bUseDesktopConfig=0
bHookSteam=0 bHookSteam=0
iUpdateRate=5000 iUpdateRate=5000
iRefreshRate=60
version=515 version=515
[LaunchGame] [LaunchGame]