SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit aa0fe30d5c67e01b184b53fc6e1a1d8c2fc0ecb8 parent 6d6aafe887be3e2cc49e315bb01845f8ce3eadc1 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 11 Jul 2025 17:59:13 +0300 Don't update the icon after an update on macOS 26, it's broken Diffstat:
| M | Cocoa/GBApp.m | 11 | ++++++++--- |
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/Cocoa/GBApp.m b/Cocoa/GBApp.m @@ -44,9 +44,14 @@ static uint32_t color_to_int(NSColor *color) - (void) applicationDidFinishLaunching:(NSNotification *)notification { // Refresh icon if launched via a software update - NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[[NSBundle mainBundle] bundlePath]]; - icon.size = [NSApplication sharedApplication].applicationIconImage.size; - [NSApplication sharedApplication].applicationIconImage = icon; + if (@available(macOS 26.0, *)) { + // Severely broken on macOS 26 + } + else { + NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:[[NSBundle mainBundle] bundlePath]]; + icon.size = [NSApplication sharedApplication].applicationIconImage.size; + [NSApplication sharedApplication].applicationIconImage = icon; + } NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; for (unsigned i = 0; i < GBKeyboardButtonCount; i++) {
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.