SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 3468d5de7eef1d0eae966d6e95c9b72c12e2c2e2 parent d146b3a30948c0da1396f41a10d5e4297b777205 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 4 Apr 2025 01:11:27 +0300 Probably a better fix Diffstat:
| M | iOS/GBSettingsViewController.m | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/iOS/GBSettingsViewController.m b/iOS/GBSettingsViewController.m @@ -506,7 +506,10 @@ static UIImage *ImageForController(GCController *controller) static NSString *LocalizedNameForElement(GCControllerElement *element, GBControllerUsage usage) { if (@available(iOS 14.0, *)) { - return element.localizedName ?: @"Unknown Button"; + NSString *ret = element.localizedName; + if (ret) { + return element.localizedName; + } } switch (usage) { case GBUsageDpad: return @"D-Pad";
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.