#include <substrate.h>
#import <Foundation/NSArray.h>
+#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSNull.h>
+
#import <CoreGraphics/CGGeometry.h>
#import <SpringBoard/SBButtonBar.h>
#import <SpringBoard/SBIcon.h>
#import <SpringBoard/SBIconModel.h>
+@interface ISIconSupport : NSObject {
+}
+
++ (ISIconSupport *) sharedInstance;
+- (void) addExtension:(NSString *)name;
+
+@end
+
@interface SBDockIconListView : NSObject {
}
- (NSArray *) icons;
MSMetaClassHook(SBDockIconListView)
MSMetaClassHook(SBIconModel)
+__attribute__((__constructor__))
+static void MSFixClass() {
+ if ($SBIcon == nil)
+ $SBIcon = objc_getClass("SBIconView");
+}
+
MSInstanceMessageHook1(float, SBButtonBar, leftMarginForIconRowArray, NSArray *, row) {
return [row indexOfObject:[NSNull null]] == NSNotFound ? 4 : MSOldCall(row);
}
/*MSClassMessageHook0(int, SBIconModel, maxIconListCount) {
return 16;
}*/
+
+MSInitialize {
+ NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]);
+
+ if (dlopen("/Library/MobileSubstrate/DynamicLibraries/IconSupport.dylib", RTLD_GLOBAL | RTLD_LAZY) != NULL)
+ if (Class $ISIconSupport = objc_getClass("ISIconSupport"))
+ [[$ISIconSupport sharedInstance] addExtension:@"com.saurik.iphone.fid"];
+
+ [pool release];
+}
Section: Tweaks
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3202-1
+Version: 0.9.3381-1
Description: fits even more stuff right down there
Name: Five Icon Dock
-Depends: mobilesubstrate (>= 0.9.3005-1), firmware (>= 2.2)
+Depends: mobilesubstrate (>= 0.9.3005-1), firmware (>= 2.2), firmware (<< 3.0) | com.chpwn.iconsupport (>= 1.7.3-1)
Conflicts: gsc.wildcat
Author: Jay Freeman (saurik) <saurik@saurik.com>
Depiction: http://cydia.saurik.com/info/com.saurik.iphone.fid/