Allow to disable popup messages about too old drivers in config.xml
This commit is contained in:
parent
e9c72f800a
commit
5828dddde8
@ -482,6 +482,9 @@ namespace UserConfigParams
|
|||||||
PARAM_PREFIX BoolUserConfigParam m_esm
|
PARAM_PREFIX BoolUserConfigParam m_esm
|
||||||
PARAM_DEFAULT(BoolUserConfigParam(false, "enable_esm",
|
PARAM_DEFAULT(BoolUserConfigParam(false, "enable_esm",
|
||||||
&m_video_group, "Enable Exponential Shadow Map (better but slower)"));
|
&m_video_group, "Enable Exponential Shadow Map (better but slower)"));
|
||||||
|
PARAM_PREFIX BoolUserConfigParam m_old_driver_popup
|
||||||
|
PARAM_DEFAULT(BoolUserConfigParam(true, "old_driver_popup",
|
||||||
|
&m_video_group, "Determines if popup message about too old drivers should be displayed."));
|
||||||
|
|
||||||
// ---- Debug - not saved to config file
|
// ---- Debug - not saved to config file
|
||||||
/** If gamepad debugging is enabled. */
|
/** If gamepad debugging is enabled. */
|
||||||
|
@ -1361,6 +1361,8 @@ int main(int argc, char *argv[] )
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (UserConfigParams::m_old_driver_popup)
|
||||||
|
{
|
||||||
if (!ProfileWorld::isNoGraphics() && GraphicsRestrictions::isDisabled(GraphicsRestrictions::GR_DRIVER_RECENT_ENOUGH))
|
if (!ProfileWorld::isNoGraphics() && GraphicsRestrictions::isDisabled(GraphicsRestrictions::GR_DRIVER_RECENT_ENOUGH))
|
||||||
{
|
{
|
||||||
MessageDialog *dialog =
|
MessageDialog *dialog =
|
||||||
@ -1377,6 +1379,7 @@ int main(int argc, char *argv[] )
|
|||||||
/*from queue*/ true);
|
/*from queue*/ true);
|
||||||
GUIEngine::DialogQueue::get()->pushDialog(dialog);
|
GUIEngine::DialogQueue::get()->pushDialog(dialog);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Note that on the very first run of STK internet status is set to
|
// Note that on the very first run of STK internet status is set to
|
||||||
// "not asked", so the report will only be sent in the next run.
|
// "not asked", so the report will only be sent in the next run.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user