Hey guys having a little trouble putting together a psslidercell targeting the '(double)arg1' part. I have followed DiDA's tutorial but I'm getting an error "undeclared identifier 'newValue'.
Not sure what I'm doing wrong, thanks for any help in advance! ☺️
#define PLIST_PATH @"/var/mobile/Library/Preferences/YOUR PLIST NAME HERE.plist"
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
inline int GetPrefInt(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] intValue];
}
%hook DidaIsGod
-(void) hellodida:(double)arg1 iloveiosgods:(bool)arg2 {
if(GetPrefBool (@"key1")) {
arg1 newValue =
GetPrefInt(@"keyslider1");
return newValue;
} else {
return %orig;
}
}
%end