diff options
Diffstat (limited to 'sketchtrial.m')
-rw-r--r-- | sketchtrial.m | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sketchtrial.m b/sketchtrial.m new file mode 100644 index 0000000..26875d6 --- /dev/null +++ b/sketchtrial.m @@ -0,0 +1,28 @@ +#import <objc/runtime.h> +#import <Foundation/Foundation.h> +#include <AppKit/AppKit.h> + + +// +// BCRegularLicense +// + +@interface BCRegularLicensePatched : NSObject +- (bool)isExpired; +@end + +@implementation BCRegularLicensePatched + ++(void)load { +Class origClass = NSClassFromString(@"BCRegularLicense"); + Method origMethod = class_getInstanceMethod(origClass, @selector(isExpired)); + Method replMethod = class_getInstanceMethod(NSClassFromString(@"BCRegularLicensePatched"), @selector(isExpired)); + + method_exchangeImplementations(origMethod, replMethod); +} + +-(bool)isExpired { + return false; +} + +@end |