Jump to content

27 posts in this topic

Recommended Posts

Posted

Example:

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.onepiece.plist"

inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
if(GetPrefBool(@"kOHK")) //Key Name
{
writeData(0xEH718, 0x4FF47F40); //Modified Hex Value
} else {
writeData(0xEH718, 0xF0B503AF); //Original Hex value
}

if(GetPrefBool(@"kGems"))
{
writeData(0xEA76C, 0x7047);
} else {
writeData(0xEA76C, 0x2DE9);
}
}
  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Example:

 

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iOSGods.onepiece.plist"

inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
if(GetPrefBool(@"kOHK")) //Key Name
{
writeData(0xEH718, 0x4FF47F40); //Modified Hex Value
} else {
writeData(0xEH718, 0xF0B503AF); //Original Hex value
}

if(GetPrefBool(@"kGems"))
{
writeData(0xEA76C, 0x7047);
} else {
writeData(0xEA76C, 0x2DE9);
}
}
ok i was able to make a patcher but why is the hack not working? I entered the correct offset and hex values.
Posted

ok i was able to make a patcher but why is the hack not working? I entered the correct offset and hex values.

You need to edit the ProjectName.plist /ProjectName/ProjectName/Resources/ProjectName.plist and use the correct keys with tweak.xm.

Posted

You need to edit the ProjectName.plist /ProjectName/ProjectName/Resources/ProjectName.plist and use the correct keys with tweak.xm.

what should i do if there are 2 offsets for a switch? The 2 offsets must set both for that 1 switch
Posted

i edited and configured everything right but the hack is not working. I dont even see the patcher in the setting.app -_-. Damn! Making a patcher is a pain in the *ss

Are you installing the .deb?

 

Use the make package install command and make sure you have PreferenceLoader installed. :)

Posted

i edited and configured everything right but the hack is not working. I dont even see the patcher in the setting.app -_-. Damn! Making a patcher is a pain in the *ss

IKR... So much shit to do.. :(

Posted

Are you installing the .deb?

Use the make package install command and make sure you have PreferenceLoader installed. :)

"make" is the command right? Yes i have PrefLoader installed
Posted

"make" is the command right? Yes i have PrefLoader installed

"make" just builds the .dylib

 

"make package" builds the .dylib and makes the .deb in the project folder

 

"make package install" builds the .dylib, makes the .deb and installs it for you on your iDevice :)

 

Check the pinned tutorial in tutorials section also. :)

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