diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-24 02:51:34 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:14 -0800 |
commit | d13577cfab7807489a69822d33776562428d002f (patch) | |
tree | c631080e471acd483bfaa7b21608e6026f6802fa /MobileCydia.mm | |
parent | 90351d9379a22db46dfe9d7d18ab720a468f3100 (diff) |
Add some debug logging to MS dlopen() calls.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 928558e..5c3cf2c 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10085,8 +10085,11 @@ int main(int argc, char *argv[]) { _pooled Finishes_ = [NSArray arrayWithObjects:@"return", @"reopen", @"restart", @"reload", @"reboot", nil]; #define MobileSubstrate_(name) \ - if (substrate && access("/Library/MobileSubstrate/DynamicLibraries/" #name ".dylib", F_OK) == 0) \ - dlopen("/Library/MobileSubstrate/DynamicLibraries/" #name ".dylib", RTLD_LAZY | RTLD_GLOBAL); + if (substrate && access("/Library/MobileSubstrate/DynamicLibraries/" #name ".dylib", F_OK) == 0) { \ + void *handle(dlopen("/Library/MobileSubstrate/DynamicLibraries/" #name ".dylib", RTLD_LAZY | RTLD_GLOBAL)); \ + if (handle == NULL) \ + NSLog(@"%s", dlerror()); \ + } MobileSubstrate_(Activator) MobileSubstrate_(libstatusbar) |