mirror of https://github.com/LIJI32/SameBoy.git
Probably a better fix
This commit is contained in:
parent
d146b3a309
commit
3468d5de7e
|
@ -506,7 +506,10 @@ static UIImage *ImageForController(GCController *controller)
|
||||||
static NSString *LocalizedNameForElement(GCControllerElement *element, GBControllerUsage usage)
|
static NSString *LocalizedNameForElement(GCControllerElement *element, GBControllerUsage usage)
|
||||||
{
|
{
|
||||||
if (@available(iOS 14.0, *)) {
|
if (@available(iOS 14.0, *)) {
|
||||||
return element.localizedName ?: @"Unknown Button";
|
NSString *ret = element.localizedName;
|
||||||
|
if (ret) {
|
||||||
|
return element.localizedName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch (usage) {
|
switch (usage) {
|
||||||
case GBUsageDpad: return @"D-Pad";
|
case GBUsageDpad: return @"D-Pad";
|
||||||
|
|
Loading…
Reference in New Issue