From: Jay Freeman (saurik) Date: Sat, 11 Oct 2014 20:48:54 +0000 (-0700) Subject: /System/Library/Frameworks is an Apple-only path. X-Git-Tag: v0.9.503~19 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/0047545cb97c80de1259dfe60c1f96ab22762dca?ds=inline /System/Library/Frameworks is an Apple-only path. --- diff --git a/Execute.cpp b/Execute.cpp index e917c00..98105be 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -1766,8 +1766,10 @@ static JSValueRef require(JSContextRef context, JSObjectRef object, JSObjectRef if (code.data == NULL) { if (strchr(name, '/') == NULL && ( +#ifdef __APPLE__ dlopen(pool.strcat("/System/Library/Frameworks/", name, ".framework/", name, NULL), RTLD_LAZY | RTLD_GLOBAL) != NULL || dlopen(pool.strcat("/System/Library/PrivateFrameworks/", name, ".framework/", name, NULL), RTLD_LAZY | RTLD_GLOBAL) != NULL || +#endif false)) return CYJSUndefined(NULL);