diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-06-12 12:28:51 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-06-12 13:00:24 -0700 |
commit | 42e25bc50bc1dd4ed6b1efb13e45b4f44a1a8a89 (patch) | |
tree | 47830f7115f3af4f03ceb2931108ce76b71089cc | |
parent | f93f4997fe8ac0a9a091e2f1f3aed6ac56ce0998 (diff) |
Someone saw UILocalizedIndexedCollation throw out.
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 5 insertions, 2 deletions
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]; |