From: Jay Freeman (saurik) Date: Wed, 16 Sep 2009 04:39:34 +0000 (+0000) Subject: Some minor details. X-Git-Tag: v0.9.3366~10 X-Git-Url: https://git.saurik.com/safemode-ios.git/commitdiff_plain/639180687601c7355ec440e90f69bd05d768d34f Some minor details. --- 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