Skip to content
Guest Big Announcement

PSSliderCell troubles (help!)

Featured Replies

 

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

Updated by JustinPet26

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.