From 639180687601c7355ec440e90f69bd05d768d34f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 16 Sep 2009 04:39:34 +0000 Subject: Some minor details. --- MobileSafety.mm | 2 +- make.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileSafety.mm b/MobileSafety.mm index dd72050..02b9469 100644 --- a/MobileSafety.mm +++ b/MobileSafety.mm @@ -176,7 +176,7 @@ MSHook(void, SBStatusBarTimeView$tile, SBStatusBarTimeView *self, SEL sel) { #define Dylib_ "/Library/MobileSubstrate/MobileSubstrate.dylib" -extern "C" void MSInitialize() { +MSInitialize { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog(@"MS:Warning: Entering Safe Mode"); diff --git a/make.sh b/make.sh index 8560869..88cb898 100755 --- a/make.sh +++ b/make.sh @@ -2,4 +2,4 @@ flags=(-O2 -g0 -fno-exceptions -fvisibility=hidden) cycc -i2.0 -oMobileSafety.dylib -- "${flags[@]}" -dynamiclib MobileSafety.mm \ -framework CoreFoundation -framework Foundation -framework UIKit \ - -L. -lsubstrate -lobjc -init _MSInitialize + -L. -lsubstrate -lobjc -- cgit v1.2.3