Jump to content

Error - Whats Wrong?


Go to solution Solved by Pro,

5 posts in this topic

Recommended Posts

Posted

This is the error I get, but I can't see whats wrong in the tweak.xm

 

 

Making all for tweak sminc...
 Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling Tweak.xm...
Tweak.xm:16:2: error: expected '}'
}
 ^
Tweak.xm:12:69: note: to match this '{'
static __attribute__((constructor)) void _logosLocalCtor_ce8e2604() {
                                                                    ^
1 error generated.
make[2]: *** [obj/Tweak.xm.c40fb11a.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [sminc.all.tweak.variables] Error 2
 

 

This is my tweak.xm

 

 

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>
 
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.Zimon.spaceminerwars.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%ctor {
if(GetPrefBool(@"key1")) {
writeData(0xOFFSET, 0x01207047);
} else {
}

 

 

I just changed the real offset to "OFFSET" now, it's not like that in the tweak.xm

Posted (edited)

You forgot the writedata(your offset,original hex) after the else line. I think that's it

You need to give him a example xD

 

He's not gonna understand xD

Updated by JohnKittz
Posted (edited)

%ctor {

if(GetPrefBool(@"key1")) {

writeData(0xOFFSET, 0x01207047);

} else {

}

}

You missed one "}"

Updated by Amuyea

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