Skip to content
Guest Big Announcement

Error - Whats Wrong?

Featured Replies

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

Solved by Pro

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

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.