Jump to content

Preprocessing error...


Go to solution Solved by castix,

31 posts in this topic

Recommended Posts

Posted

Hi. So I've use DiDA's NIC template & edited like all the files and after I try & compile, this is the error I receive:

 

 

image.png

 

 

 

 

Any help please? I have little little experience with making patchers :lol: thanks :)

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods..joanmadrun.plist"

 

inline bool GetPrefBool(NSString *key) {

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

}

 

%hook Joan

 

-(bool)canTakeDamage {

if(GetPrefBool(@"kDamage")) {

return FALSE;

}

return %orig;

}

 

%end

 

%hook DataManage

 

-(bool)infiniteAmmo {

if(GetPrefBool(@"kAmmo")) {

return TRUE;

}

return %orig;

}

 

-(long long)coinsInHand {

if(GetPrefBool(@"kCoins")) {

return 999999999;

}

return %orig;

}

 

%end

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

 

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

 

if([button isEqualToString:@"Visit Us"])

{

[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/]];

}

}

%end

Posted

com.iosgods..joanmadrun.plist"

 

You put 2 dots, do this : com.iosgods.joanmadrun.plist

That's how it was.

 

It says it in every file with it...

Posted

You need to hook the AppDelegate of the app don't leave %new without a class or subclass

 

 

 

That's how it was.

 

It says it in every file with it...

Shouldn't be 2 dots, really

Posted

I noticed it, changed it & didn't make a difference & gave me a different error but I'll try again...


You need to hook the AppDelegate of the app don't leave %new without a class or subclass

 

 

 

Shouldn't be 2 dots, really

So what do I change the '%new' to?

Posted

I noticed it, changed it & didn't make a difference & gave me a different error but I'll try again...

So what do I change the '%new' to?

Who said you need to change it 0.o 

 

%hook class

%new

{...}

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