From 42e25bc50bc1dd4ed6b1efb13e45b4f44a1a8a89 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 12 Jun 2014 12:28:51 -0700 Subject: Someone saw UILocalizedIndexedCollation throw out. --- MobileCydia.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index 33bed9e..d9edac3 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10223,7 +10223,7 @@ int main(int argc, char *argv[]) { } /* }}} */ /* Index Collation {{{ */ - if (Class $UILocalizedIndexedCollation = objc_getClass("UILocalizedIndexedCollation")) { + if (Class $UILocalizedIndexedCollation = objc_getClass("UILocalizedIndexedCollation")) { @try { NSBundle *bundle([NSBundle bundleForClass:$UILocalizedIndexedCollation]); NSString *path([bundle pathForResource:@"UITableViewLocalizedSectionIndex" ofType:@"plist"]); //path = @"/System/Library/Frameworks/UIKit.framework/.lproj/UITableViewLocalizedSectionIndex.plist"; @@ -10259,7 +10259,10 @@ int main(int argc, char *argv[]) { } } - } else { + } @catch (NSException *e) { + NSLog(@"%@", e); + goto hard; + } } else hard: { CollationLocale_ = [[[NSLocale alloc] initWithLocaleIdentifier:@"en@collation=dictionary"] autorelease]; CollationThumbs_ = [NSArray arrayWithObjects:@"A",@"B",@"C",@"D",@"E",@"F",@"G",@"H",@"I",@"J",@"K",@"L",@"M",@"N",@"O",@"P",@"Q",@"R",@"S",@"T",@"U",@"V",@"W",@"X",@"Y",@"Z",@"#",nil]; -- cgit v1.2.3