From: Jay Freeman (saurik) Date: Mon, 7 Mar 2011 12:35:27 +0000 (-0800) Subject: Remove spaces from png filenames. X-Git-Tag: v1.1.0%b1~40 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/34841cd7efb9b3189adc3d6333960b41cc3d5475?ds=sidebyside Remove spaces from png filenames. --- diff --git a/MobileCydia.app/Sections/Carrier Bundles.png b/MobileCydia.app/Sections/Carrier Bundles.png deleted file mode 100644 index 00f36f73..00000000 Binary files a/MobileCydia.app/Sections/Carrier Bundles.png and /dev/null differ diff --git a/MobileCydia.app/Sections/Carrier_Bundles.png b/MobileCydia.app/Sections/Carrier_Bundles.png new file mode 100644 index 00000000..00f36f73 Binary files /dev/null and b/MobileCydia.app/Sections/Carrier_Bundles.png differ diff --git a/MobileCydia.app/Sections/Data Storage.png b/MobileCydia.app/Sections/Data Storage.png deleted file mode 100644 index 1bb23fed..00000000 Binary files a/MobileCydia.app/Sections/Data Storage.png and /dev/null differ diff --git a/MobileCydia.app/Sections/Data_Storage.png b/MobileCydia.app/Sections/Data_Storage.png new file mode 100644 index 00000000..1bb23fed Binary files /dev/null and b/MobileCydia.app/Sections/Data_Storage.png differ diff --git a/MobileCydia.app/Sections/Health and Fitness.png b/MobileCydia.app/Sections/Health and Fitness.png deleted file mode 100644 index e2db0133..00000000 Binary files a/MobileCydia.app/Sections/Health and Fitness.png and /dev/null differ diff --git a/MobileCydia.app/Sections/Health_and_Fitness.png b/MobileCydia.app/Sections/Health_and_Fitness.png new file mode 100644 index 00000000..e2db0133 Binary files /dev/null and b/MobileCydia.app/Sections/Health_and_Fitness.png differ diff --git a/MobileCydia.app/Sections/Site-Specific Apps.png b/MobileCydia.app/Sections/Site-Specific Apps.png deleted file mode 100644 index 6732d7b3..00000000 Binary files a/MobileCydia.app/Sections/Site-Specific Apps.png and /dev/null differ diff --git a/MobileCydia.app/Sections/Site-Specific_Apps.png b/MobileCydia.app/Sections/Site-Specific_Apps.png new file mode 100644 index 00000000..6732d7b3 Binary files /dev/null and b/MobileCydia.app/Sections/Site-Specific_Apps.png differ diff --git a/MobileCydia.app/Sections/Terminal Support.png b/MobileCydia.app/Sections/Terminal Support.png deleted file mode 100644 index d6646184..00000000 Binary files a/MobileCydia.app/Sections/Terminal Support.png and /dev/null differ diff --git a/MobileCydia.app/Sections/Terminal_Support.png b/MobileCydia.app/Sections/Terminal_Support.png new file mode 100644 index 00000000..d6646184 Binary files /dev/null and b/MobileCydia.app/Sections/Terminal_Support.png differ diff --git a/MobileCydia.app/Sections/Text Editors.png b/MobileCydia.app/Sections/Text Editors.png deleted file mode 100644 index 5e65d46d..00000000 Binary files a/MobileCydia.app/Sections/Text Editors.png and /dev/null differ diff --git a/MobileCydia.app/Sections/Text_Editors.png b/MobileCydia.app/Sections/Text_Editors.png new file mode 100644 index 00000000..5e65d46d Binary files /dev/null and b/MobileCydia.app/Sections/Text_Editors.png differ diff --git a/MobileCydia.app/Sections/X Window.png b/MobileCydia.app/Sections/X Window.png deleted file mode 100644 index eac01e94..00000000 Binary files a/MobileCydia.app/Sections/X Window.png and /dev/null differ diff --git a/MobileCydia.app/Sections/X_Window.png b/MobileCydia.app/Sections/X_Window.png new file mode 100644 index 00000000..eac01e94 Binary files /dev/null and b/MobileCydia.app/Sections/X_Window.png differ diff --git a/MobileCydia.mm b/MobileCydia.mm index c072c267..ef5bc704 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];