Jump to content

patcher help


Go to solution Solved by Rook,

39 posts in this topic

Recommended Posts

Posted

I see an error regarding your Tweak.xm..

ive looked through it there's nothing out of order i can post the contents here for you

Posted (edited)

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.johnkittz.infection2.plist"

 

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook DNAWallet

 

-(int)pointsToBeEarned {

if(GetPrefBool(@"key1")) {

return 8000000;

}

return %orig;

}

%end

 

%hook Country

 

-(float)maxInfectivity {       

if(GetPrefBool(@"key2")) {

return 8000000;

}

return %orig;

}

-(float)maxVisibility {

if(GetPrefBool(@"key3")) {

return 8000000;

}

return %orig;

}

-(float)cureResearched {

if (GetPrefBool(@"key4")) {

return 0;

}

return %orig;

}

-(float)wealth {

if (GetPrefBool(@"key5")) {

return 0;

}

return %orig;

}

%end

-(BOOL)portsClosed {

if (GetPrefBool(@"key6")) {

return FALSE;

}

return %orig;

}

-(BOOL)airportsClosed {

if (GetPrefBool(@"key7")) {

return FALSE;

}

return %orig;

}

-(BOOL)landBoardersClosed {

if (GetPrefBool(@"key8")) {

return FALSE;

}

return %orig;

}

%end

 

%hook GameStage

 

-(float)totalCureResearch {

if(GetPrefBool(@"key9")) {

return 0;

}

return %orig;

}

%end

here it is...@@DiDA

Updated by JohnKittz
Posted (edited)

Maybe forgot to add content where the strings are for each pannel :dunno:

Updated by bib

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines