Jump to content

Convert this flex tweak at deb


Go to solution Solved by Theangelofspace15,

9 posts in this topic

Recommended Posts

Posted (edited)

Hi i am trying to make this a deb tweak 3f2e71a2fde78a9a2bbd27ee1c952ee1.jpg

After i install it does nothing. This is the code i used:

 

 

%hook knAdsManager

 

- (bool)getEnabled{

return TRUE;

}

 

- (void)setEnabled:(bool)argument{

argument = TRUE;

}

 

%end

Updated by Theangelofspace15
Posted

Try this:

%hook knAdsManager

- (bool)getEnabled{
return TRUE;
}

- (void)setEnabled:(bool)argument{
argument = TRUE;
%orig(argument);
}

%end 
Posted

Thanks all i had the wrong ID bundle :-) it fixed and working.

:thumbsup: :)

Posted


%hook ALInterstitialDialogView

- (void)videoPlaybackEndedInAd:(id)fp8 atPlayback:(id)fp12 fullyWatched:(BOOL)fp16 {

return %orig(fp8, fp12, true);

}

%end

Posted (edited)

 

%hook ALInterstitialDialogView
- (void)videoPlaybackEndedInAd:(id)fp8 atPlayback:(id)fp12 fullyWatched:(BOOL)fp16 {
return %orig(fp8, fp12, true);
}
%end
What do fp8, fp12, and fp16 means? Are they variables that u assigned the values of the arguments and then returned the values, keeping fp8, fp12 the same and making f16 true? Updated by Theangelofspace15
Posted (edited)

What do fp8, fp12, and fp16 means?

return %orig(fp8, fp12, true);

 

is the same as doing 

 

return %orig(arg1, arg2, arg3);

 

or like the argument you used on the first post:

 

- (void)setEnabled:(bool)argument{

argument = TRUE;

}

 

castix chose to identify them as fp8/fp12/fp16 etc.

Updated by DiDA

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