Jump to content

How do I write this in theos (mshooking)?


Go to solution Solved by Affe2626,

3 posts in this topic

Recommended Posts

  • Solution
Posted

%hook BZRAllowedProductsProvider
-(bool)isSubscriptionProduct:(id)arg1
{
	//arg1 = something
	//bool temp = %orig(arg1) to call original & store return value in temp (can just be returned w/o storing)
	//return true/false/temp/%orig(arg1)
}
%end

 

Posted
On 1/20/2018 at 11:47 AM, Affe2626 said:


%hook BZRAllowedProductsProvider
-(bool)isSubscriptionProduct:(id)arg1
{
	//arg1 = something
	//bool temp = %orig(arg1) to call original & store return value in temp (can just be returned w/o storing)
	//return true/false/temp/%orig(arg1)
}
%end

 

Thanks!

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