diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 04:35:27 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 01:50:02 -0800 |
commit | 34841cd7efb9b3189adc3d6333960b41cc3d5475 (patch) | |
tree | 92849cade1058563fd3c7ab986b34481e40bf405 /MobileCydia.mm | |
parent | df27070399c61922ec227823602f0d7f06043726 (diff) |
Remove spaces from png filenames.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index c072c26..ef5bc70 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6843,7 +6843,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { goto fail; path = [path stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *section(Simplify(path)); - UIImage *icon([UIImage imageAtPath:[NSString stringWithFormat:@"%@/Sections/%@.png", App_, section]]); + UIImage *icon([UIImage imageAtPath:[NSString stringWithFormat:@"%@/Sections/%@.png", App_, [section stringByReplacingOccurrencesOfString:@" " withString:@"_"]]]); if (icon == nil) icon = [UIImage applicationImageNamed:@"unknown.png"]; [self _returnPNGWithImage:icon forRequest:request]; |