]> git.saurik.com Git - winterboard.git/commitdiff
I /think/ I should ensure UIImages end with .png.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 15:40:36 +0000 (07:40 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 15:40:36 +0000 (07:40 -0800)
Library.mm

index d5175fb5685a04de3d926f8ae41a146d22a8dfdd..48cfefc53dff26a3140f51d05763df6549492723 100644 (file)
@@ -1889,6 +1889,8 @@ MSInstanceMessageHook0(void, CKTranscriptController, loadView) {
 
 template <typename Original_>
 static UIImage *WBCacheUIImage(const Original_ &original, NSString *name, NSString *key) {
+    if ([name rangeOfString:@"."].location == NSNotFound)
+        name = [name stringByAppendingString:@".png"];
     UIImage *image(WBCacheImage(original, [=](){ return $pathForFile$inBundle$(name, _UIKitBundle(), true, true); }, key));
     if (image != nil && UIDebug_) {
         NSString *path([@"/tmp/UIImages/" stringByAppendingString:name]);