Jump to content

Patcher error


Go to solution Solved by Rook,

25 posts in this topic

Recommended Posts

Posted

You didn't give any value to arg1 :

%hook MakePartsLayer

-(BOOL) canAffordToUsePartMaker:(int)arg1 {

if(GetPrefBool(@"kParts")) {

return TRUE;

}

return %orig;

}

%end

You didn't give any value to arg1 :

%hook GameRules

-(int) getGemCostForTickets:(int)arg1 {

if(GetPrefBool(@"kArenaTickets")) {

return 1;

}

return %orig;

}

%end

Actually, you didn't return any value to arguments lol I just noticed :p

I didnt return any value only at those points as a pass through is fine. They arent actively influencing the mod much.

Posted

I didnt return any value only at those points as a pass through is fine. They arent actively influencing the mod much.

Doesn't matter, you still need to return them.

 

Just do arg1 = ;

Posted
#define PLIST_PATH @"/var/mobile/Library/PreferenceBundles/tnprefbundle.bundle/tnprefbundle.plist"

but 

<string>com.archangel.tnprefbundle</string>

I guess the .plist has a different name than what you've written in your Tweak.xm

Posted

 

#define PLIST_PATH @"/var/mobile/Library/PreferenceBundles/tnprefbundle.bundle/tnprefbundle.plist"
but 

<string>com.archangel.tnprefbundle</string>
I guess the .plist has a different name than what you've written in your Tweak.xm
The one in .plist is the project name, no? The above one is the path to locate it (I think?)
  • Solution
Posted

The one in .plist is the project name, no? The above one is the path to locate it (I think?)

I suggest you use the template I made in Tools. :)

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