summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index a2d4333..1b58d39 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4127,6 +4127,8 @@ static _H<NSMutableSet> Diversions_;
return @"getSessionValue";
else if (selector == @selector(installPackages:))
return @"installPackages";
+ else if (selector == @selector(isReachable:))
+ return @"isReachable";
else if (selector == @selector(localizedStringForKey:value:table:))
return @"localize";
else if (selector == @selector(popViewController:))
@@ -4437,6 +4439,10 @@ static _H<NSMutableSet> Diversions_;
[indirect_ performSelectorOnMainThread:@selector(close) withObject:nil waitUntilDone:NO];
}
+- (NSNumber *) isReachable:(NSString *)name {
+ return [NSNumber numberWithBool:IsReachable([name UTF8String])];
+}
+
- (void) installPackages:(NSArray *)packages {
[delegate_ performSelectorOnMainThread:@selector(installPackages:) withObject:packages waitUntilDone:NO];
}