git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 34c29b052eb4db43f97f17719c93102b7630ec01
parent 4ebb108ae11b60e35abcdcb1c7f0084deabe7161
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 28 Jun 2025 20:55:30 +0300

UI fixes in the cheats screen

Diffstat:
MiOS/GBCheatsController.m7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/iOS/GBCheatsController.m b/iOS/GBCheatsController.m @@ -24,7 +24,8 @@ if (section == 0) return 1; size_t count; GB_get_cheats(_gb, &count); - self.toolbarItems.firstObject.enabled = count; + self.toolbarItems[0].enabled = count; + ((UIButton *)(self.toolbarItems[0].customView.subviews[0])).enabled = count; return count; } @@ -161,9 +162,7 @@ UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[url] applicationActivities:nil]; - if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) { - controller.popoverPresentationController.barButtonItem = self.toolbarItems.firstObject; - } + controller.popoverPresentationController.barButtonItem = self.toolbarItems.firstObject; [self presentViewController:controller animated:true

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.