]> git.saurik.com Git - winterboard.git/blobdiff - UIImages.mm
Added BadgeStyle to Info.plist.
[winterboard.git] / UIImages.mm
index 0e2272cdedc0939a8b1a2e33c7323818ed1531d3..461e937183a76c8f12331d0d418edf26553560ab 100644 (file)
@@ -1,11 +1,15 @@
 #import <Foundation/Foundation.h>
 #import <CoreGraphics/CoreGraphics.h>
-#import <UIKit/UIKit.h>
+
+#import <UIKit/UIKeyboard.h>
+#import <UIKit/UIImage.h>
 
 extern "C" {
     #include <mach-o/nlist.h>
 }
 
+extern "C" NSData *UIImagePNGRepresentation(UIImage *image);
+
 int main(int argc, char *argv[]) {
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
 
@@ -24,6 +28,7 @@ int main(int argc, char *argv[]) {
         NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
         NSString *key = [keys objectAtIndex:i];
         CGImageRef ref = (CGImageRef) [*images objectForKey:key];
+        CFShow(ref);
         UIImage *image = [UIImage imageWithCGImage:ref];
         NSData *data = UIImagePNGRepresentation(image);
         [data writeToFile:[NSString stringWithFormat:@"%@", key] atomically:YES];