summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Device.cpp
diff options
context:
space:
mode:
authorRoland Munsil <roland@munsil.com>2018-10-03 17:17:45 -0500
committerLéo Lam <leo@innovatetechnologi.es>2019-05-26 17:32:48 +0200
commit4ce707909851fe3a119d395de860ef8651bb004c (patch)
treef15f2edd613de64012e6c814f36d43b39710bf50 /Source/Core/InputCommon/ControllerInterface/Device.cpp
parent526698d2fc293aa915ed318b5cfa9bb55753b8bf (diff)
CheatsManager: Improve performance of searching & add input validation
The previous implementation of cheat search would reconvert the input string for every single memory value. Now we do it once and construct a comparison lambda which we pass to the search code. In addition, I also added input validation. So, for example, if you've selected Decimal input and you try to compare against "FF", it won't search and will instead let the user know they've entered an invalid value. Similar logic for if you enter "1.2" in a search for bytes. Before, it would just use 0 if it failed to convert the value.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.cpp')
0 files changed, 0 insertions, 0 deletions