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