From: Jay Freeman (saurik) Date: Sun, 23 Jun 2013 07:44:13 +0000 (-0700) Subject: Remove obsolete attempts to support the Simulator. X-Git-Tag: v0.9.500%b1~47 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/152806537319cc413679fdfbe5bdc6b9972dc660 Remove obsolete attempts to support the Simulator. --- diff --git a/Trampoline.t.cpp b/Trampoline.t.cpp index aff0296..e5d4a7d 100644 --- a/Trampoline.t.cpp +++ b/Trampoline.t.cpp @@ -150,11 +150,6 @@ static _finline void cyset(Baton *baton, Type_ &function, const char *name, cons function = reinterpret_cast(Symbol(infos, library, name)); } -// XXX: where you find this needs to be relative to CoreFoundation (or something) -// XXX: this needs to check if the framework is under PrivateFrameworks instead -#define Framework(framework) \ - "/System/Library/Frameworks/" #framework ".framework/" #framework - void *Routine(void *arg) { Baton *baton(reinterpret_cast(arg)); @@ -173,15 +168,6 @@ void *Routine(void *arg) { void *(*dlopen)(const char *, int); dlset(&dynamic, dlopen, "dlopen"); - if (dynamic.dlsym(RTLD_DEFAULT, "JSEvaluateScript") == NULL) - dlopen(Framework(JavaScriptCore), RTLD_GLOBAL | RTLD_LAZY); - - void *(*objc_getClass)(const char *); - dlset(&dynamic, objc_getClass, "objc_getClass"); - - if (objc_getClass("WebUndefined") == NULL) - dlopen(Framework(WebKit), RTLD_GLOBAL | RTLD_LAZY); - void *handle(dlopen(baton->library, RTLD_LAZY | RTLD_LOCAL)); if (handle == NULL) { dynamic.dlerror();