Jump to content

Can you help me? convert it to .DEB


Go to solution Solved by Rook,

4 posts in this topic

Recommended Posts

Posted

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

  • Solution
Posted
#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.

Posted

Thanks DIDA

Were you able to build your patcher successfully? Removed extra keys and everything?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines