#import <Preferences/PSListController.h>
#import <Preferences/PSSpecifier.h>
+#include <substrate.h>
+#include <mach-o/dyld.h>
+
static NSBundle *wbSettingsBundle;
static Class $WBSettingsController;
@end
+MSHook(int32_t, NSVersionOfLinkTimeLibrary, const char *name) {
+ if (strcmp(name, "UIKit") == 0)
+ return 0x6400000;
+ return _NSVersionOfLinkTimeLibrary(name);
+}
+
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool( [[NSAutoreleasePool alloc] init]);
+ MSHookFunction(NSVersionOfLinkTimeLibrary, MSHake(NSVersionOfLinkTimeLibrary));
+
int value = UIApplicationMain(argc, argv, @"WBApplication", @"WBApplication");
[pool release];
ldid -S $@
WinterBoard: Application.mm makefile
- $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics -I/apl/sdk -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks
+ $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics -I/apl/sdk -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks $(substrate)
ldid -S $@
Optimize: Optimize.cpp makefile