bool CyteIsReachable(const char *name);
-void CyteInitialize(NSString *app, NSString *version);
+void CyteInitialize(NSString *agent);
static inline double Retina(double value) {
value *= ScreenScale_;
;
}
-void CyteInitialize(NSString *app, NSString *version) {
+void CyteInitialize(NSString *agent) {
UIScreen *screen([UIScreen mainScreen]);
if ([screen respondsToSelector:@selector(scale)])
ScreenScale_ = [screen scale];
safari = [info objectForKey:@"CFBundleVersion"];
}
- NSString *agent([NSString stringWithFormat:@"%@/%@ CyF/%.2f", app, version, kCFCoreFoundationVersionNumber]);
+ agent = [NSString stringWithFormat:@"%@ CyF/%.2f", agent, kCFCoreFoundationVersionNumber];
if (RegEx match = RegEx("([0-9]+(\\.[0-9]+)+).*", safari))
agent = [NSString stringWithFormat:@"Safari/%@ %@", match[1], agent];
_trace();
- CyteInitialize(@"Cydia", Cydia_);
+ CyteInitialize([NSString stringWithFormat:@"Cydia/%@", Cydia_]);
UpdateExternalStatus(0);
SessionData_ = [NSMutableDictionary dictionaryWithCapacity:4];