+ struct nlist nl[3];
+ memset(nl, 0, sizeof(nl));
+ nl[0].n_un.n_name = (char *) "___mappedImages";
+ nl[1].n_un.n_name = (char *) "__UISharedImageInitialize";
+ nlist("/System/Library/Frameworks/UIKit.framework/UIKit", nl);
+ ImageMap_ = (id *) nl[0].n_value;
+ void (*__UISharedImageInitialize)(bool) = (void (*)(bool)) nl[1].n_value;
+
+ __UISharedImageInitialize(false);
+
+ /*NSArray *keys = [*ImageMap_ allKeys];
+ for (int i(0), e([keys count]); i != e; ++i) {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ NSString *key = [keys objectAtIndex:i];
+ CGImageRef ref = (CGImageRef) [*ImageMap_ objectForKey:key];
+ UIImage *image = [UIImage imageWithCGImage:ref];
+ NSData *data = UIImagePNGRepresentation(image);
+ [data writeToFile:[NSString stringWithFormat:@"/tmp/pwnr/%@", key] atomically:YES];
+ [pool release];
+ }*/
+
+ Manager_ = [[NSFileManager defaultManager] retain];
+