Fixes assigning non-X controller skins to games on X-devices

This commit is contained in:
Riley Testut 2020-02-11 16:32:20 -08:00
parent 89db6b0d3a
commit 8b5ac435a6

View File

@ -238,8 +238,9 @@ extension Settings
case .landscape: preferredControllerSkin = game.preferredLandscapeSkin
}
if let controllerSkin = preferredControllerSkin, controllerSkin.supports(traits)
if let controllerSkin = preferredControllerSkin, let _ = controllerSkin.supportedTraits(for: traits)
{
// Check if there are supported traits, which includes fallback traits for X <-> non-X devices.
return controllerSkin
}