From: Jay Freeman (saurik) Date: Thu, 17 Jan 2013 06:24:56 +0000 (+0000) Subject: iOS <4.x had private ImageIO (thanks forevermac!). X-Git-Tag: v0.9.3908~4 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/179b9afbafa22c3b07232675ea1fcb1e71a7e44a iOS <4.x had private ImageIO (thanks forevermac!). --- diff --git a/Library.mm b/Library.mm index 369b1d0..716413c 100644 --- a/Library.mm +++ b/Library.mm @@ -2279,7 +2279,10 @@ MSInitialize { } // }}} // ImageIO {{{ - if (MSImageRef image = MSGetImageByName("/System/Library/Frameworks/ImageIO.framework/ImageIO")) { + MSImageRef imageio = MSGetImageByName("/System/Library/Frameworks/ImageIO.framework/ImageIO"); + if (imageio == NULL) + imageio = MSGetImageByName("/System/Library/PrivateFrameworks/ImageIO.framework/ImageIO"); + if (MSImageRef image = imageio) { void *(*CGImageReadCreateWithFile)(NSString *, int); msset(CGImageReadCreateWithFile, image, "_CGImageReadCreateWithFile"); MSHookFunction(CGImageReadCreateWithFile, MSHake(CGImageReadCreateWithFile));