Skip to content
Guest Big Announcement

Having problems making a patcher.

Featured Replies

Hello. I've been trying to make an autolipo patcher for 2 days but have been encountering many problems. I am going to restart. Firstly I will list my tweak.xm and my plist and I'd like to know if there is anything wrong with them before I continue.

 

Tweak.xm:

/* Generated using http://armconverter.com/codeinjectgenerator/ *//* To MSHook Offsets, use http://armconverter.com/mshookgenerator/ */#import "writeData.h"#import <Foundation/Foundation.h>#import <substrate.h>#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.postknightgaius.plist"inline bool GetPrefBool(NSString *key) {	return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];}%ctor {	if(GetPrefBool(@"skillpoints")) {		writeData(0xoffset, 0xhex);	} else {}	if(GetPrefBool(@"diamonds")) {		writeData(0xoffset, 0xhex);		writeData(0xoffset, 0xhex);	} else {}	if(GetPrefBool(@"coins")) {		writeData(offset, 0xhex);		writeData(offset, 0xhex);	} else {}} 

My plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Adds instead of subtracting.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>skillpoints</string>
			<key>label</key>
			<string>Unlimited Skill Points</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Earn some, then it will become an extremely high amount</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>diamonds</string>
			<key>label</key>
			<string>Unlimited Diamonds</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Earn some, then it will become an extremely high amount</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.postknightgaius</string>
			<key>key</key>
			<string>coins</string>
			<key>label</key>
			<string>Unlimited Coins</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by Gaius.</string>
		</dict>
		<dict>
			<key>action</key>
			<string>link</string>
			<key>cell</key>
			<string>PSButtonCell</string>
			<key>icon</key>
			<string>[email protected]</string>
			<key>label</key>
			<string>Visit iOSGods.com</string>
		</dict>
	</array>
	<key>title</key>
	<string>Postknight Cheats</string>
</dict>
</plist> 

Thanks.

Updated by Gaius

  • Author

What is the error?

Hold on. I messed up the

Updated by Gaius

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.