From f868c22c7ec85f54656e30bee0205b804b50f96b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 8 Jan 2014 07:40:36 -0800 Subject: [PATCH] I /think/ I should ensure UIImages end with .png. --- Library.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library.mm b/Library.mm index d5175fb..48cfefc 100644 --- a/Library.mm +++ b/Library.mm @@ -1889,6 +1889,8 @@ MSInstanceMessageHook0(void, CKTranscriptController, loadView) { template 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]); -- 2.45.2