Simple one to fix here.
This commit is contained in:
+3
-4
@@ -76,16 +76,15 @@ static bool ChangeAppPri()
|
||||
if( INPUTMAN )
|
||||
{
|
||||
INPUTMAN->GetDevicesAndDescriptions(vDevices);
|
||||
FOREACH_CONST( InputDeviceInfo, vDevices, d )
|
||||
{
|
||||
if( d->sDesc.find("NTPAD") != string::npos )
|
||||
if (std::any_of(vDevices.begin(), vDevices.end(), [](InputDeviceInfo const &d) {
|
||||
return d.sDesc.find("NTPAD") != string::npos;
|
||||
}))
|
||||
{
|
||||
LOG->Trace( "Using NTPAD. Don't boost priority." );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// If this is a debug build, don't. It makes the VC debugger sluggish.
|
||||
|
||||
Reference in New Issue
Block a user