Jump to content

[Tut] How to make a simple license system for deb


160 posts in this topic

Recommended Posts

Posted
On 4/8/2018 at 6:29 PM, xiaov said:

 

int hackResult = 0;


%hook AppDelegate

- (char)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 
{

use same code in my tut;

}


%new -(void)gameActivateSucess {

hackResult = 1;

}

%end

 

%hook xxxxxx

-(void)xxxxx(bool)arg

{

if(hackResult == 1) {

arg = TRUE;

} else {

arg = FALSE;

}

%end

check on top replied

> Making all for tweak ElaSalaty…
==> Preprocessing Tweak.xm…
Tweak.xm:34: error: %hook does not make sense inside a block
make[3]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/Tweak.xm.d3fda203.o] Error 255
make[2]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/ElaSalaty.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [ElaSalaty.all.tweak.variables] Error 2
Klashksa:/var/mobile/ElaSalaty root#

Posted
15 minutes ago, klashksa said:

> Making all for tweak ElaSalaty…
==> Preprocessing Tweak.xm…
Tweak.xm:34: error: %hook does not make sense inside a block
make[3]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/Tweak.xm.d3fda203.o] Error 255
make[2]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/ElaSalaty.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [ElaSalaty.all.tweak.variables] Error 2
Klashksa:/var/mobile/ElaSalaty root#

less one } before last end

Posted
33 minutes ago, xiaov said:

less one } before last end

%hook ThemesManager
-(bool) IsThemePurchased:(id)arg {

if(hackResult == 1) {

arg = true;

} else {

arg = false;

%end

 

 

 

> Making all for tweak ElaSalaty…
==> Preprocessing Tweak.xm…
Tweak.xm:99: error: %end does not make sense inside a block
make[3]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/Tweak.xm.d3fda203.o] Error 255
make[2]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/ElaSalaty.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [ElaSalaty.all.tweak.variables] Error 2

 

 

 

Posted
3 hours ago, klashksa said:

%hook ThemesManager
-(bool) IsThemePurchased:(id)arg {

if(hackResult == 1) {

arg = true;

} else {

arg = false;

%end 

 

 

 

> Making all for tweak ElaSalaty…
==> Preprocessing Tweak.xm…
Tweak.xm:99: error: %end does not make sense inside a block
make[3]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/Tweak.xm.d3fda203.o] Error 255
make[2]: *** [/var/mobile/ElaSalaty/.theos/obj/debug/armv7/ElaSalaty.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [ElaSalaty.all.tweak.variables] Error 2

 

 

 

%hook ThemesManager
-(bool) IsThemePurchased:(id)arg {

if(hackResult == 1) {

arg = true;

} else {

arg = false;

}

}

%end

Posted
16 minutes ago, xiaov said:

%hook ThemesManager
-(bool) IsThemePurchased:(id)arg {

if(hackResult == 1) {

arg = true;

} else {

arg = false;

}

}

%end

worked fine thank u so much?

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