Skip to content
Guest Big Announcement

Featured Replies

any one help me please :/

tweak.xm

%hook Gold
-(unsigned long long) gold {
NSDictionary *ios = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/com.pro.pros.plist"]];
int k = [[ios objectForKey:@"k4"] intValue];
int r = %orig();
int p = r * k;
return (p)?
p: r;
}
%end
%hook Gold
-(unsigned long long) gold {
NSDictionary *ios = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/com.pro.pros.plist"]];
return [[ios objectForKey:@"k1"] intValue];
}
%end

 

// error

Tweak.xm:27:292: error: redefinition of
      '_logos_orig$_ungrouped$Story$gold'
  ...SEL); static unsigned long long (*_logos_orig$_ungroup...
                                       ^
Tweak.xm:27:29: note: previous definition is here
static unsigned long long (*_logos_orig$_ungrouped$Sto...
                            ^
Tweak.xm:16:27: error: redefinition of
      '_logos_method$_ungrouped$Story$gold'
static unsigned long long _logos_method$_ungrouped$Sto...
                          ^
Tweak.xm:6:27: note: previous definition is here
static unsigned long long _logos_method$_ungrouped$Sto...
                          ^
2 errors generated.
make[3]: *** [/var/mobile/gold/.theos/obj/debug/armv7/Tweak.xm.48fb334b.o] Error 1
make[2]: *** [/var/mobile/gold/.theos/obj/debug/armv7/gold.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [gold.all.tweak.variables] Error 2

Solved by Archangel04

  • Solution

you defined the same thing twice. Read the error. Your line 6 and 16 are same. 

also, this isnt your full tweak.xm. I suggest you use armconverter.com. If you did, then reload because pressing generate twice adds it twice

 

  • Author
On ٢٠‏/٤‏/٢٠١٧ at 9:15 PM, Archangel04 said:

you defined the same thing twice. Read the error. Your line 6 and 16 are same. 

also, this isnt your full tweak.xm. I suggest you use armconverter.com. If you did, then reload because pressing generate twice adds it twice

 

thanks :clap:

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.