From 8bd55062b41bb5598bba59417a90b57e720d3e9b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 29 Dec 2016 11:46:24 -0800 Subject: Seriously: not a single person actually helped :/. --- MobileCydia.mm | 5 +---- iPhonePrivate.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 813a382..d25e070 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 5e97c50..46cde9f 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); -- cgit v1.2.3