From 3135f5ed08d747d62ce66486fab9f385dbfb2820 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 7 Oct 2011 09:04:18 +0000 Subject: [PATCH] Add GSSystemHasCapability. --- Library.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library.mm b/Library.mm index 084ab9a..ffe6f12 100644 --- a/Library.mm +++ b/Library.mm @@ -776,9 +776,11 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) { UIDevice *device([UIDevice currentDevice]); IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat]; + BOOL (*GSSystemHasCapability)(CFStringRef) = reinterpret_cast(dlsym(RTLD_DEFAULT, "GSSystemHasCapability")); + if ([Info_ objectForKey:@"UndockedIconLabels"] == nil) [Info_ setObject:[NSNumber numberWithBool:( - !(Papered_ || GSSystemHasCapability(CFSTR("homescreen-wallpaper"))) || + !(Papered_ || GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("homescreen-wallpaper"))) || [Info_ objectForKey:@"DockedIconLabelStyle"] != nil || [Info_ objectForKey:@"UndockedIconLabelStyle"] != nil )] forKey:@"UndockedIconLabels"]; -- 2.45.2