blob: 26875d67cef573f09968d23b1eadf56ff28db6c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|