git.y1.nz

SameBoy

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

commit 122549d3cdb9e6d364982133e4493c860510b014
parent e13048d07b90c81f5ac07e99f76cc89fafac6935
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu,  3 Oct 2024 16:21:18 +0300

Merge branch 'master' of github.com:LIJI32/SameBoy

Diffstat:
MCocoa/GBTerminalTextFieldCell.m2+-
MCocoa/KeyboardShortcutPrivateAPIs.h6+++---
MHexFiend/HFPasteboardOwner.m2+-
MiOS/GBViewController.m5+----
4 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/Cocoa/GBTerminalTextFieldCell.m b/Cocoa/GBTerminalTextFieldCell.m @@ -45,7 +45,7 @@ { self = [super init]; if (!self) { - return NULL; + return nil; } lines = [[NSMutableOrderedSet alloc] init]; return self; diff --git a/Cocoa/KeyboardShortcutPrivateAPIs.h b/Cocoa/KeyboardShortcutPrivateAPIs.h @@ -4,10 +4,10 @@ @interface NSKeyboardShortcut : NSObject <NSCopying> + (id)shortcutWithPreferencesEncoding:(NSString *)encoding; -+ (id)shortcutWithKeyEquivalent:(NSString *)key_equivalent modifierMask:(unsigned long long)mask; -- (id)initWithKeyEquivalent:(NSString *)key_equivalent modifierMask:(unsigned long long)mask; ++ (id)shortcutWithKeyEquivalent:(NSString *)key_equivalent modifierMask:(NSUInteger)mask; +- (id)initWithKeyEquivalent:(NSString *)key_equivalent modifierMask:(NSUInteger)mask; -@property(readonly) unsigned long long modifierMask; +@property(readonly) NSUInteger modifierMask; @property(readonly) NSString *keyEquivalent; @property(readonly) NSString *preferencesEncoding; @property(readonly) NSString *localizedModifierMaskDisplayName; diff --git a/HexFiend/HFPasteboardOwner.m b/HexFiend/HFPasteboardOwner.m @@ -44,7 +44,7 @@ NSString *const HFPrivateByteArrayPboardType = @"HFPrivateByteArrayPboardType"; [[NSNotificationCenter defaultCenter] removeObserver:self name:HFPrepareForChangeInFileNotification object:nil]; } if (retainedSelfOnBehalfOfPboard) { - CFRelease(self); + [self release]; retainedSelfOnBehalfOfPboard = NO; } } diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m @@ -617,13 +617,10 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp) const char *_teamIdentifier = xpc_dictionary_get_string(entitlements, "com.apple.developer.team-identifier"); NSString *teamIdentifier = _teamIdentifier? @(_teamIdentifier) : nil; - CFRelease(entitlements); - if (!entIdentifier) { // No identifier. Installed using a jailbreak, we're fine. return; } - - + if (teamIdentifier && [entIdentifier hasPrefix:[teamIdentifier stringByAppendingString:@"."]]) { entIdentifier = [entIdentifier substringFromIndex:teamIdentifier.length + 1]; }

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