From 34841cd7efb9b3189adc3d6333960b41cc3d5475 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 7 Mar 2011 04:35:27 -0800 Subject: [PATCH] Remove spaces from png filenames. --- .../{Carrier Bundles.png => Carrier_Bundles.png} | Bin .../Sections/{Data Storage.png => Data_Storage.png} | Bin ...ealth and Fitness.png => Health_and_Fitness.png} | Bin ...ite-Specific Apps.png => Site-Specific_Apps.png} | Bin .../{Terminal Support.png => Terminal_Support.png} | Bin .../Sections/{Text Editors.png => Text_Editors.png} | Bin .../Sections/{X Window.png => X_Window.png} | Bin MobileCydia.mm | 2 +- 8 files changed, 1 insertion(+), 1 deletion(-) rename MobileCydia.app/Sections/{Carrier Bundles.png => Carrier_Bundles.png} (100%) rename MobileCydia.app/Sections/{Data Storage.png => Data_Storage.png} (100%) rename MobileCydia.app/Sections/{Health and Fitness.png => Health_and_Fitness.png} (100%) rename MobileCydia.app/Sections/{Site-Specific Apps.png => Site-Specific_Apps.png} (100%) rename MobileCydia.app/Sections/{Terminal Support.png => Terminal_Support.png} (100%) rename MobileCydia.app/Sections/{Text Editors.png => Text_Editors.png} (100%) rename MobileCydia.app/Sections/{X Window.png => X_Window.png} (100%) diff --git a/MobileCydia.app/Sections/Carrier Bundles.png b/MobileCydia.app/Sections/Carrier_Bundles.png similarity index 100% rename from MobileCydia.app/Sections/Carrier Bundles.png rename to MobileCydia.app/Sections/Carrier_Bundles.png diff --git a/MobileCydia.app/Sections/Data Storage.png b/MobileCydia.app/Sections/Data_Storage.png similarity index 100% rename from MobileCydia.app/Sections/Data Storage.png rename to MobileCydia.app/Sections/Data_Storage.png diff --git a/MobileCydia.app/Sections/Health and Fitness.png b/MobileCydia.app/Sections/Health_and_Fitness.png similarity index 100% rename from MobileCydia.app/Sections/Health and Fitness.png rename to MobileCydia.app/Sections/Health_and_Fitness.png diff --git a/MobileCydia.app/Sections/Site-Specific Apps.png b/MobileCydia.app/Sections/Site-Specific_Apps.png similarity index 100% rename from MobileCydia.app/Sections/Site-Specific Apps.png rename to MobileCydia.app/Sections/Site-Specific_Apps.png diff --git a/MobileCydia.app/Sections/Terminal Support.png b/MobileCydia.app/Sections/Terminal_Support.png similarity index 100% rename from MobileCydia.app/Sections/Terminal Support.png rename to MobileCydia.app/Sections/Terminal_Support.png diff --git a/MobileCydia.app/Sections/Text Editors.png b/MobileCydia.app/Sections/Text_Editors.png similarity index 100% rename from MobileCydia.app/Sections/Text Editors.png rename to MobileCydia.app/Sections/Text_Editors.png diff --git a/MobileCydia.app/Sections/X Window.png b/MobileCydia.app/Sections/X_Window.png similarity index 100% rename from MobileCydia.app/Sections/X Window.png rename to MobileCydia.app/Sections/X_Window.png 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]; -- 2.47.2