Kenix3 / libultraship

Porting games to the PC
MIT License
90 stars 64 forks source link

check for null controller mapping before assigning #555

Closed Archez closed 2 weeks ago

Archez commented 2 weeks ago

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.