Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <UIKit/UIKit.h>
- #import "Hack.h"
- #import"HackManager.h"
- @class Hack;
- @class HackManager;
- #define PLIST_PATH @"/var/mobile/Library/Preferences/com.infection.plist"
- #define CURRENTDNAPOINTSHACK 0
- #define LETHALITYHACK 1
- #define VISIBILITYHACK 2
- #define GEMSHACKS 3
- HackManager *hackmanager = nil;
- %hook AppController
- -(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12
- {
- struct AllowedOrientations supportedOrientations = MakeInitialOrientations();
- supportedOrientations.landscapeLeft = true;
- supportedOrientations.landscapeRight = true;
- hackmanager = [[HackManager alloc]initWithDictPath:PLIST_PATH hackerName:@"Curry" coordX:10 coordY:20 andOrientation:UIInterfaceOrientationLandscapeRight andSupportedOrientations:supportedOrientations];
- [hackmanager addHackWithKey:@"currentdnapoint" andName:@"Currentdnapoints" andType:NUMBER];
- [hackmanager addHackWithKey:@"lethality" andName:@"Lethality" andType:NUMBER];
- [hackmanager addHackWithKey:@"visiblilty" andName:@"Visiblity" andType:NUMBER];
- [hackmanager addHackWithKey:@"gems" andName:@"Gems" andType:NUMBER];
- return %orig;
- }
- %end
- %hook DNAWallet
- -(int)currentDNAPoints
- {
- [[hackmanager getHackValueAtIndex:CURRENTDNAPOINTSHACK]intValue];
- }
- %end
- %hook DiseaseTrait
- -(float)visibility
- {
- [[hackmanager getHackValueAtIndex:VISIBLITYHACK]floatValue];
- }
- -(float)lethality
- {
- [[hackmanager getHackValueAtIndex:LETHALITYHACK]floatValue];
- }
- %end
- %hook GemWallet
- -(int)gems
- {
- [[hackmanager getHackValueAtIndex:GEMSHACK]intValue];
- }
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement