]> git.saurik.com Git - veency.git/commitdiff
Upgrade Veency to support the current MSHookSymbol.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 2 Jun 2012 22:24:13 +0000 (22:24 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 2 Jun 2012 22:24:13 +0000 (22:24 +0000)
Tweak.mm

index 0b159f7471b145988a75e5e735c2c50796feb97a..3b76f06a5331ccee344560ae27479a08216b116c 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -768,9 +768,9 @@ static void dlset(Type_ &function, const char *name) {
 MSInitialize {
     NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]);
 
-    MSHookSymbol(GSTakePurpleSystemEventPort, "GSGetPurpleSystemEventPort");
+    MSHookSymbol(GSTakePurpleSystemEventPort, "_GSGetPurpleSystemEventPort");
     if (GSTakePurpleSystemEventPort == NULL) {
-        MSHookSymbol(GSTakePurpleSystemEventPort, "GSCopyPurpleSystemEventPort");
+        MSHookSymbol(GSTakePurpleSystemEventPort, "_GSCopyPurpleSystemEventPort");
         PurpleAllocated = true;
     }