summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-06-12 12:28:51 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-06-12 13:00:24 -0700
commit42e25bc50bc1dd4ed6b1efb13e45b4f44a1a8a89 (patch)
tree47830f7115f3af4f03ceb2931108ce76b71089cc /MobileCydia.mm
parentf93f4997fe8ac0a9a091e2f1f3aed6ac56ce0998 (diff)
Someone saw UILocalizedIndexedCollation throw out.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
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];