]> git.saurik.com Git - safemode-ios.git/commitdiff
Some minor details.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Sep 2009 04:39:34 +0000 (04:39 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 16 Sep 2009 04:39:34 +0000 (04:39 +0000)
MobileSafety.mm
make.sh

index dd72050a54c8d2d7c927ae4f3d7bc699096aed9a..02b9469e4e8e15ddaec9b32add22face45fdf4eb 100644 (file)
@@ -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 8560869931564c776d2b2fdf716c9185378f7b0e..88cb898d0a2b86b36b78ace1372d5e26b00458f9 100755 (executable)
--- 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