From: Jay Freeman (saurik) Date: Thu, 29 Dec 2016 19:46:24 +0000 (-0800) Subject: Seriously: not a single person actually helped :/. X-Git-Tag: v1.1.28%b1^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/8bd55062b41bb5598bba59417a90b57e720d3e9b?ds=inline Seriously: not a single person actually helped :/. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 813a382c..d25e0702 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4637,10 +4637,7 @@ static _H Diversions_; } - (NSArray *) getDisplayIdentifiers { - NSSet *set([SBSCopyApplicationDisplayIdentifiers() autorelease]); - if (set == nil || ![set isKindOfClass:[NSSet class]]) - return [NSArray array]; - return [set allObjects]; + return SBSCopyApplicationDisplayIdentifiers(false, false); } - (NSString *) getLocalizedNameForDisplayIdentifier:(NSString *)identifier { diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 5e97c501..46cde9fa 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -438,7 +438,7 @@ extern float const UIWebViewScalesToFitScale; extern "C" void *reboot2(uint64_t flags); extern "C" mach_port_t SBSSpringBoardServerPort(); extern "C" int SBBundlePathForDisplayIdentifier(mach_port_t port, const char *identifier, char *path); -extern "C" NSSet *SBSCopyApplicationDisplayIdentifiers(); +extern "C" NSArray *SBSCopyApplicationDisplayIdentifiers(bool active, bool debuggable); extern "C" NSString *SBSCopyLocalizedApplicationNameForDisplayIdentifier(NSString *); extern "C" NSString *SBSCopyIconImagePathForDisplayIdentifier(NSString *); extern "C" UIImage *_UIImageWithName(NSString *name);