Hello ,
in dida THEOS template
we can do siwtch for every funciton
%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
We have 6 funciton with 6 switcher
but i want make 1 switcher for 6 funciton
Enable/Disable
something like this
If All funciton ok
enable the tweak
else
disable
Thank U