]> git.saurik.com Git - winterboard.git/commitdiff
Fix WBMarkup on ARM64 (JSC::intializeThreading).
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 16:10:47 +0000 (08:10 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 16:10:47 +0000 (08:10 -0800)
WBMarkup.mm

index 77d7c376238dcdc843947a747f4bcf649be53a68..f3713675d2a976bae04b35a0a3eb52865d1da533 100644 (file)
@@ -70,6 +70,13 @@ static WBMarkup *SharedMarkup_;
     MSHookSymbol(WKViewLockFocus$, "WKViewLockFocus", WebCore);
     MSHookSymbol(WKViewUnlockFocus$, "WKViewUnlockFocus", WebCore);
     MSHookSymbol(WKViewDisplayRect$, "WKViewDisplayRect", WebCore);
     MSHookSymbol(WKViewLockFocus$, "WKViewLockFocus", WebCore);
     MSHookSymbol(WKViewUnlockFocus$, "WKViewUnlockFocus", WebCore);
     MSHookSymbol(WKViewDisplayRect$, "WKViewDisplayRect", WebCore);
+
+    MSImageRef JavaScriptCore(MSGetImageByName("/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore"));
+
+    void (*_ZN3JSC19initializeThreadingEv)();
+    MSHookSymbol(_ZN3JSC19initializeThreadingEv, "__ZN3JSC19initializeThreadingEv", JavaScriptCore);
+    if (_ZN3JSC19initializeThreadingEv != NULL)
+        (*_ZN3JSC19initializeThreadingEv)();
 }
 
 + (BOOL) isSharedMarkupCreated {
 }
 
 + (BOOL) isSharedMarkupCreated {