git.y1.nz

SameBoy

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

commit 887a8104f5c98d4dc5c39872678e12b2233182c7
parent a773297b3a4863d56f908b4b9fbb70bec17a2125
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  2 Jul 2022 21:00:40 +0300

Refresh icon if launched via a software update

Diffstat:
MCocoa/AppDelegate.m3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/Cocoa/AppDelegate.m b/Cocoa/AppDelegate.m @@ -35,6 +35,9 @@ static uint32_t color_to_int(NSColor *color) - (void) applicationDidFinishLaunching:(NSNotification *)notification { + // Refresh icon if launched via a software update + [NSApplication sharedApplication].applicationIconImage = [NSImage imageNamed:@"AppIcon"]; + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; for (unsigned i = 0; i < GBButtonCount; i++) { if ([[defaults objectForKey:button_to_preference_name(i, 0)] isKindOfClass:[NSString class]]) {

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