Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LIJI32/SameBoy
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Oct 3, 2024
2 parents e13048d + 1fac887 commit 122549d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cocoa/GBTerminalTextFieldCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (instancetype)init
{
self = [super init];
if (!self) {
return NULL;
return nil;
}
lines = [[NSMutableOrderedSet alloc] init];
return self;
Expand Down
6 changes: 3 additions & 3 deletions Cocoa/KeyboardShortcutPrivateAPIs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion HexFiend/HFPasteboardOwner.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ - (void)tearDownPasteboardReferenceIfExists {
[[NSNotificationCenter defaultCenter] removeObserver:self name:HFPrepareForChangeInFileNotification object:nil];
}
if (retainedSelfOnBehalfOfPboard) {
CFRelease(self);
[self release];
retainedSelfOnBehalfOfPboard = NO;
}
}
Expand Down
5 changes: 1 addition & 4 deletions iOS/GBViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,10 @@ - (void)verifyEntitlements
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];
}
Expand Down

0 comments on commit 122549d

Please sign in to comment.