Jump to content

7 posts in this topic

Recommended Posts

Posted

2 errors that appear.

n9NZ5xr.png

Says it's missing '%end' at the end of the tweak file...

If someone knows please help me fix the tweak.

Any help is great, this has been going on for a while.

 

Thanks!   (y)

Posted
8 hours ago, Zimon said:

Add '%end' at the end of your tweak.xm...

I tried that but it ended up having more errors, i'll give it a go now though.

Posted
7 hours ago, DutchGreen said:

How about you post your tweak.xm and makefile.... Makes it a whole lot easier.

I was thinking about that.

Posted (edited)

Tweak.xm

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
    if(GetPrefBool(@"key1")) {
        return; //returns void to null//
     %orig (arg2, 5);
    } 
    return %orig;
}

It has no %end but when I add it, it shows a lot of errors when making the package. I may have added it wrong.

 

Makefile

include theos/makefiles/common.mk

TWEAK_NAME = YoutuberFreeViewsLikes
YoutuberFreeViewsLikes_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

 

Updated by AUSSIE G4M3R
Posted (edited)
On 8-8-2017 at 2:57 AM, AUSSIE G4M3R said:

Tweak.xm


%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
    if(GetPrefBool(@"key1")) {
        return; //returns void to null//
     %orig (arg2, 5);
    } 
    return %orig;
}

It has no %end but when I add it, it shows a lot of errors when making the package. I may have added it wrong.

 

Makefile


include theos/makefiles/common.mk

TWEAK_NAME = YoutuberFreeViewsLikes
YoutuberFreeViewsLikes_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

 

Tweak.xm

%hook PromoteViewController

-(void)goBuyViews:(int) numbercoins:(int)argument {
  return %orig; 
    argument = 10000;
}
%end

 

Makefile

export ARCHS = armv7 arm64
export TARGET = iphone:latest:8.0

include theos/makefiles/common.mk

TWEAK_NAME = YoutuberFreeViewsLikes
YoutuberFreeViewsLikes_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

Try this. I'm in the process of rejailbreaking so can't test if it compiles rn

Updated by DutchGreen

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