Skip to content
Guest Big Announcement

Tweak hack won't compile with error

Featured Replies

I can't create makefile package  I have a problem  

:sad:

This is my problem

p_565f3gij0.jpg

 

p_5654nr9h0.jpg 

 

p_565zaw1o0.jpg

 

 

note : my tweak.xm like this topic 

 

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>

/* To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-tweakpatcherfunction-tweakpatcher-withwithout-psedittextcellpsslidercell-generator-online/ */
/* To Easily Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject-generator-online-tweakxm-preferencesplist/ */

#define PLIST_PATH @"/var/mobile/Library/Preferences/@@PACKAGENAME@@.plist"

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

%ctor {
        if(GetPrefBool(@"key1")) {
                writeData(0xOFFSET, 0xHEX);
        } else {
}


        if(GetPrefBool(@"key2")) {
                writeData(0x10963C, 0xC0F8AC70);
        } else {
}


        if(GetPrefBool(@"key3")) {
                writeData(0x10ACEA, 0xC0F8C871);
        } else {
}


        if(GetPrefBool(@"key4")) {
                writeData(0x1806B8, 0x381C);
                writeData(0x2FA51C, 0x381C);
                writeData(0x1806B8, 0x7047);
                writeData(0x1806B8, 0x7047);
        } else {
}

}

 


/* Popup with a link 

Varieties of a UIAlertView Popup can be found here: https://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/

*/


%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"@@PROJECTNAME@@ Cheats" 
                                                  message:@"\n@@PROJECTNAME@@ Cheats by @@@User@@ for iOSGods.com"
                                                 delegate:self 
                                                                                cancelButtonTitle:@"Thanks" 
                                                                                otherButtonTitles:@"Visit Us", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
        NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
        if([button isEqualToString:@"Visit Us"]) {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/"]];                                                                                  
        }
}
%end

 

 

 

@DiDA 

 

Updated by DiDA

Solved by Rook

  • Author

Thx bro for ur comment but I get this wrong  after the remove

 

this is my tweak.xm after removed key1

p_565vgrkk0.jpg

 

 

 

This is my new problem 

p_565cqclj1.jpg 

 

@DiDA

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.