Since CreateDeviceIndexMappingFromConfig can return null, we need to check for null controller mapping before assigning.
This was exposed due to namespace changes, and the cvars from an old json had LUSDeviceIndexToSDLDeviceIndexMapping instead of ShipXXX, causing it to return null.
Since
CreateDeviceIndexMappingFromConfig
can returnnull
, we need to check for null controller mapping before assigning.This was exposed due to namespace changes, and the cvars from an old json had
LUSDeviceIndexToSDLDeviceIndexMapping
instead ofShipXXX
, causing it to return null.