Fixes assigning non-X controller skins to games on X-devices
This commit is contained in:
parent
89db6b0d3a
commit
8b5ac435a6
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user