Skip to content
Guest Big Announcement

Can you help me? convert it to .DEB

Featured Replies

Help me convet Flex/flex2 tweaks to .deb

 

10961826_388880721272191_1021444592_n.jp

 

10966802_388880714605525_398087271_n.jpg

 

my patcher

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.lamapple.plist"
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook something
 
-(int)method {
if(GetPrefBool(@"kKey")) {
return 9999999;
}
return %orig;
}

-(int)gems {       
if(GetPrefBool(@"kGems")) {
return 9999999;
}
return %orig;
}

-(unsigned int)lives {
if(GetPrefBool(@"kLives")) {
return 9999999;
}
return %orig;
}

%end

%hook SomethingElse

-(BOOL)SomeMethod {
if(GetPrefBool(@"kKEY5")) {
return TRUE;
}
return %orig;
}

-(BOOL)SomeMethod2 {
if(GetPrefBool(@"kKEY6")) {
return FALSE;
}
return %orig;
}

%end

https://www.dropbox.com/s/n85f0adyy6qj8ux/patches.zip?dl=0&amp%3Bh=CAQEp5y2g

Solved by Rook

  • Solution
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.lamapple.plist"
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UIStatusBarNewUIStyleAttributes

-(id)initWithRequest:(id)fp8 backgroundColor:(id)fp10 foregroundColor:(id)fp12 {
if(GetPrefBool(@"kKey")) {
fp8 = NULL;
fp10 = NULL;
fp12 = NULL;
}
return %orig;
}
%end

I think that should do it. You might need to check the lowercase/uppercase letters again because your font was confusing.

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.