Jump to content

Help me with this coding please


Go to solution Solved by xC3FFF0E,

9 posts in this topic

Recommended Posts

Posted

Where should I place the key on this code?

 -(void) setIsStickerFromShop:(bool) neverbeing {
 neverbeing = true;
 %orig(neverbeing);
}


Like this, (@"kKey"))

-(int)method {
if(GetPrefBool(@"kKey")) {
return 9999999;
}
return %orig;
}
  • Solution
Posted

Neverbeing? Change it to "argument".

 

If you are making a patcher, follow this:

 

[Paste it to your Tweak.xm]

 

 

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"k(Your Desire Word Here = You'll use this on your .plist)")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

 

 

Clear View:

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"kSticker")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

Then on your .plist, where located in /var/mobile/(your project)/(project name)/Resources/(name of your project).plist

 

On that .plist, put this:

 

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>Your note of the switch</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.yourcompany.projectname</string>

<key>key</key>

<string>kSticker</string> <----- Put the "kSticker" there (depends on what you put on the tweak.xm)

<key>label</key>

<string>Very Important: Name of the Switch.</string>

</dict>

<dict>

 

 

Just follow these if you're doing a Patcher.

Oh... Is that really "neverbeing"? O.o

Posted

Neverbeing? Change it to "argument".

 

If you are making a patcher, follow this:

 

[Paste it to your Tweak.xm]

 

 

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"k(Your Desire Word Here = You'll use this on your .plist)")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

 

 

Clear View:

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"kSticker")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

Then on your .plist, where located in /var/mobile/(your project)/(project name)/Resources/(name of your project).plist

 

On that .plist, put this:

 

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>Your note of the switch</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.yourcompany.projectname</string>

<key>key</key>

<string>kSticker</string> <----- Put the "kSticker" there (depends on what you put on the tweak.xm)

<key>label</key>

<string>Very Important: Name of the Switch.</string>

</dict>

<dict>

 

 

Just follow these if you're doing a Patcher.

Oh... Is that really "neverbeing"? O.o

 

OMG! Thank you, Sir! O.o:clap:

Posted

Well, you save my works!  I also use template patcher from iOSGods.

Sorry, noob here.

Once again, thank you. Now my patch is working (y) (y) (y)xD

Hehe :) Good Job! Going to post it here? We're all waiting :)

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