mirror of https://github.com/LIJI32/SameBoy.git
Merge branch 'master' of github.com:LIJI32/SameBoy
This commit is contained in:
commit
122549d3cd
|
@ -45,7 +45,7 @@
|
|||
{
|
||||
self = [super init];
|
||||
if (!self) {
|
||||
return NULL;
|
||||
return nil;
|
||||
}
|
||||
lines = [[NSMutableOrderedSet alloc] init];
|
||||
return self;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -44,7 +44,7 @@ NSString *const HFPrivateByteArrayPboardType = @"HFPrivateByteArrayPboardType";
|
|||
[[NSNotificationCenter defaultCenter] removeObserver:self name:HFPrepareForChangeInFileNotification object:nil];
|
||||
}
|
||||
if (retainedSelfOnBehalfOfPboard) {
|
||||
CFRelease(self);
|
||||
[self release];
|
||||
retainedSelfOnBehalfOfPboard = NO;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue