*/
/* }}} */
-#import <GraphicsServices/GraphicsServices.h>
#import <UIKit/UIKit.h>
#include <stdio.h>
#include <dlfcn.h>
&OnGSCapabilityChanged,
CFSTR("GSCapabilitiesChanged"),
NULL,
- NULL
+ 0
);
for (;;) {
} else if ($GSSystemGetCapability != NULL) {
capability = reinterpret_cast<const NSDictionary *>((*$GSSystemGetCapability)(reinterpret_cast<CFStringRef>(name)));
} else {
+ capability = nil;
+
if (void *libMobileGestalt = dlopen("/usr/lib/libMobileGestalt.dylib", RTLD_GLOBAL | RTLD_LAZY))
if (CFTypeRef (*$MGCopyAnswer)(CFStringRef) = reinterpret_cast<CFTypeRef (*)(CFStringRef)>(dlsym(libMobileGestalt, "MGCopyAnswer"))) {
NSMutableDictionary *answers([NSMutableDictionary dictionary]);