diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 02:41:08 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 02:41:08 -0800 |
commit | d71f3a07db779a610c9f3d6b50cfe6c022b7f618 (patch) | |
tree | 5739fcb92523ee6ebe995add491be4223910fee5 | |
parent | 2136717ae1c29d6014d525324a03542e0a8ba9fd (diff) |
Support Activator and libstatusbar.
-rw-r--r-- | MobileCydia.mm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index db250f8..b14cda1 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9876,10 +9876,15 @@ int main(int argc, char *argv[]) { _pooled Finishes_ = [NSArray arrayWithObjects:@"return", @"reopen", @"restart", @"reload", @"reboot", nil]; - if (substrate && access("/Library/MobileSubstrate/DynamicLibraries/SimulatedKeyEvents.dylib", F_OK) == 0) - dlopen("/Library/MobileSubstrate/DynamicLibraries/SimulatedKeyEvents.dylib", RTLD_LAZY | RTLD_GLOBAL); - if (substrate && access("/Applications/WinterBoard.app/WinterBoard.dylib", F_OK) == 0) - dlopen("/Applications/WinterBoard.app/WinterBoard.dylib", RTLD_LAZY | RTLD_GLOBAL); +#define MobileSubstrate_(name) \ + if (substrate && access("/Library/MobileSubstrate/DynamicLibraries/" #name ".dylib", F_OK) == 0) \ + dlopen("/Library/MobileSubstrate/DynamicLibraries/" #name ".dylib", RTLD_LAZY | RTLD_GLOBAL); + + MobileSubstrate_(Activator) + MobileSubstrate_(libstatusbar) + MobileSubstrate_(SimulatedKeyEvents) + MobileSubstrate_(WinterBoard) + /*if (substrate && access("/Library/MobileSubstrate/MobileSubstrate.dylib", F_OK) == 0) dlopen("/Library/MobileSubstrate/MobileSubstrate.dylib", RTLD_LAZY | RTLD_GLOBAL);*/ |