#define ShowInternals (0 && !ForRelease)
#define IgnoreInstall (0 && !ForRelease)
#define RecycleWebViews 0
+#define RecyclePackageViews 0
#define AlwaysReload (1 && !ForRelease)
#if !TraceLogging
- (Address *) author {
if (author$_ == nil) {
+_trace();
if (author_.empty())
return nil;
+_trace();
author$_ = [[Address addressWithString:author_] retain];
+_trace();
} return author$_;
}
ManageView *manage_;
SearchView *search_;
+#if RecyclePackageViews
NSMutableArray *details_;
+#endif
}
@end
- (void) setPackageView:(PackageView *)view {
WebThreadLock();
[view setPackage:nil];
+#if RecyclePackageViews
if ([details_ count] < 3)
[details_ addObject:view];
+#endif
WebThreadUnlock();
}
}
- (PackageView *) packageView {
+#if RecyclePackageViews
PackageView *view;
size_t count([details_ count]);
}
return view;
+#else
+ return [self _packageView];
+#endif
}
- (void) finish {
withClass:[ManageView class]
] retain];
+#if RecyclePackageViews
details_ = [[NSMutableArray alloc] initWithCapacity:4];
[details_ addObject:[self _packageView]];
[details_ addObject:[self _packageView]];
+#endif
PrintTimes();
}
- (void) applicationDidFinishLaunching:(id)unused {
+ [BrowserView _initialize];
+
_trace();
Font12_ = [[UIFont systemFontOfSize:12] retain];
Font12Bold_ = [[UIFont boldSystemFontOfSize:12] retain];
/*if (substrate && access("/Library/MobileSubstrate/MobileSubstrate.dylib", F_OK) == 0)
dlopen("/Library/MobileSubstrate/MobileSubstrate.dylib", RTLD_LAZY | RTLD_GLOBAL);*/
- if (access("/User", F_OK) != 0) {
+ if (access("/User", F_OK) != 0 || access("/tmp/.cydia.fw", F_OK) != 0) {
+ unlink("/tmp/.cydia.fw");
_trace();
system("/usr/libexec/cydia/firmware.sh");
_trace();