summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm5
-rw-r--r--iPhonePrivate.h2
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<NSMutableSet> 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);