From: Jay Freeman (saurik) Date: Wed, 8 Jan 2014 15:40:36 +0000 (-0800) Subject: I /think/ I should ensure UIImages end with .png. X-Git-Tag: v0.9.3912~25 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/f868c22c7ec85f54656e30bee0205b804b50f96b I /think/ I should ensure UIImages end with .png. --- 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]);