summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-11-26 18:24:01 +0100
committerLéo Lam <leo@innovatetechnologi.es>2017-11-26 18:24:01 +0100
commit05c8d229afc3d88f4c368a648e96b049ccd2fba3 (patch)
tree250d2da4cb45f697d2a10494dda8f4c025ae9acd /Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp
parent653977cec758514027a0c73937b781f60c18ced9 (diff)
Config: Handle unknown system strings better
Currently, a simple typo in the system name will trigger an assert message that complains about a "programming error". This is not user friendly and misleading. So this changes GetSystemFromName to return an std::optional, which allows for callers to check whether the system exists and handle failures better.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp')
0 files changed, 0 insertions, 0 deletions