Jump to content

error in tweak.xm


Go to solution Solved by Joka,

8 posts in this topic

Recommended Posts

Posted

am close like never before :) lol

i see it says what is error, but i dont know what i need to do... :)

also what need to do with thet obj/debug/arm7 error???

5NOx7aw.png

here is picture and here is tweak xm...

#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/xxx.plist"

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

%ctor {
    if(GetPrefBool(@"key1")) {
        writeData(0x1527D4 0xA0E3);
    } else {
}


    if(GetPrefBool(@"key2")) {
        writeData(0x15370C, 0x40E2);
    } else {
}
}

Posted
6 minutes ago, Joka said:

You forgot to add a comma for "key1".

writeData(0x1527D4, 0xA0E3);

 

Just now, DiDA said:

Pay attention Goran! These things matter!

thanks guys!! i see that everything is important here :)

what about that theos/obj/debug/armv7 error???

Posted
1 minute ago, DiDA said:

Pay attention Goran! These things matter!

Lmao.

Is this where we're supposed to laugh?

Posted
Just now, Goran said:

 

thanks guys!! i see that everything is important here :)

what about that theos/obj/debug/armv7 error???

That's part of that

Posted
Just now, Goran said:

 

thanks guys!! i see that everything is important here :)

what about that theos/obj/debug/armv7 error???

Fix the comma first then compile and see what errors you get.

Posted
Just now, Joka said:

Fix the comma first then compile and see what errors you get.

 

Just now, DiDA said:

That's part of that

 

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