From: Jay Freeman (saurik) Date: Fri, 19 Nov 2010 00:41:22 +0000 (-0800) Subject: Flatten Sections.plist: no Rename and no recursion. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/4cc22db32159d712733af21cb6e90b6dd343aed6 Flatten Sections.plist: no Rename and no recursion. --- diff --git a/MobileCydia.app/Sections.plist b/MobileCydia.app/Sections.plist index 03a6f5de..e6eb1820 100644 --- a/MobileCydia.app/Sections.plist +++ b/MobileCydia.app/Sections.plist @@ -4,286 +4,145 @@ Hunspell Dictionaries - - Rename - Dictionaries (Hunspell) - + Dictionaries Utility - - Rename - Utilities - + Utilities Themes (Springboard) - - Rename - Themes (SpringBoard) - + Themes (SpringBoard) Themes (SummerBoard) - - Rename - Themes (SpringBoard) - + Themes (SpringBoard) Themes (Systen) - - Rename - Themes (System) - + Themes (System) Intelliborn - - Rename - Utilities - + Utilities SMS - - Rename - Messaging - + Messaging CarrierBundle - - Rename - Carrier Bundles - + Carrier Bundles Messages - - Rename - Messaging - + Messaging Themes (Locksceen) - - Rename - Themes (LockScreen) - + Themes (LockScreen) Themes (Lockscree) - - Rename - Themes (LockScreen) - + Themes (LockScreen) Themes (Losckscreen) - - Rename - Themes (LockScreen) - + Themes (LockScreen) Themes (Video) - - Rename - Themes (Videos) - + Themes (Videos) Utilites - - Rename - Utilities - + Utilities Themes (Lockscreen) - - Rename - Themes (LockScreen) - + Themes (LockScreen) Themes (Complet) - - Rename - Themes (Complete) - + Themes (Complete) Themes (Widgets) - - Rename - Themes (Addons) - + Themes (Addons) Wallpapers - - Rename - Wallpaper - + Wallpaper Messageing - - Rename - Messaging - + Messaging Network - - Rename - Networking - + Networking Ringtone - - Rename - Ringtones - + Ringtones Tweak - - Rename - Tweaks - + Tweaks Tweaks 2.0 - - Rename - Tweaks (2.0) - + Tweaks (2.0) Tweaks 2.1 - - Rename - Tweaks (2.1) - + Tweaks (2.1) Tweaks 2.2 - - Rename - Tweaks (2.2) - + Tweaks (2.2) Tweaks 3.0 - - Rename - Tweaks (3.0) - + Tweaks (3.0) SBSettings Addons - - Rename - Addons (SBSettings) - + Addons (SBSettings) LockInfo Addons - - Rename - Addons (LockInfo) - + Addons (LockInfo) App Addons - - Rename - Addons - + Addons App Addons (Iconoclasm) - - Rename - Addons (Iconoclasm) - + Addons (Iconoclasm) BossPaper Addons - - Rename - Addons (BossPaper) - + Addons (BossPaper) Lockinfo Addons - - Rename - Addons (LockInfo) - + Addons (LockInfo) Dictionaries (Hunspell) - - Rename - Dictionaries - + Dictionaries eBooks - - Rename - Books - + Books Themes (WinterBoard) - - Rename - Themes - + Themes Themes (Weather) - - Rename - Themes (Apps) - + Themes (Apps) Themes (Videos) - - Rename - Themes (Apps) - + Themes (Apps) Themes (SMS) - - Rename - Themes (Apps) - + Themes (Apps) Themes (iPad) - - Rename - Themes - + Themes Themes (Dock) - - Rename - Themes (SpringBoard) - + Themes (SpringBoard) Themes (Icy) - - Rename - Themes (Apps) - + Themes (Apps) Themes (Dialer) - - Rename - Themes (Apps) - + Themes (Apps) Themes (Battery) - - Rename - Themes (LockScreen) - + Themes (LockScreen) Themes (SYSTEM) - - Rename - Themes (System) - + Themes (System) WebApps - - Rename - Site-Specific Apps - + Site-Specific Apps FontSwap - - Rename - Addons (FontSwap) - + Addons (FontSwap) Cydgets (Lock) - - Rename - Addons (Cydget) - + Addons (Cydget) diff --git a/MobileCydia.mm b/MobileCydia.mm index a3b9cddf..b6802c0f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -2209,15 +2209,7 @@ struct PackageNameOrdering : _profile(Package$section) std::replace(section_.data(), section_.data() + section_.size(), '_', ' '); NSString *name(section_); - - lookup: - if (NSDictionary *value = [SectionMap_ objectForKey:name]) - if (NSString *rename = [value objectForKey:@"Rename"]) { - name = rename; - goto lookup; - } - - section$_ = name; + section$_ = [SectionMap_ objectForKey:name] ?: name; _end } return section$_; }