Jump to content

4 posts in this topic

Recommended Posts

Posted

So I am using flexconverter and I keep getting minor errors such as dots or :

there is my tweak.xm

//Generated with FlexConverter.

#include <substrate.h>

%hook GADevice
+(bool) isJailbroken {
return FALSE;
}
%end

%hook CBJBroken
+(bool) isDeviceJailbroken {
return FALSE;
}
%end

%hook CBJBroken
+(bool) isAppCracked {
return FALSE;
}
%end

%hook GameViewV7
-(bool) collideWithWall {
return FALSE;
}
%end

%hook GameOverView
-(void) setJumpCount:(int)arg1 {
arg1 = 99999999;
return %orig;
}
%end

%hook LevelDescriptor
-(void) setLocked:(bool)arg1 {
arg1 = FALSE;
return %orig;
}
%end

%hook LevelDescriptor
-(bool) locked {
return FALSE;
}
%end

%hook SettingsManager
-(bool) adsDisabled {
return TRUE;
}
%end

%hook FBInterstitialAdInternal
-(bool) showAdFromRootViewController:(id)arg1 animated:(bool) {
arg2 = FALSE;
return %orig;
}
%end

%hook FBInterstitialAd
-(bool) showAdFromRootViewController:(id)arg1 {
return ;
return FALSE;
}
%end

%hook GameViewV7
-(void) setJumpCount:(int)arg1 {
arg1 = 99999999;
return %orig;
}
%end

Then I get this. Is there a template to codes?

IMG_0322.jpg

Image link if broken: https://image.ibb.co/gnwKRG/IMG_0322.jpg

Posted
> Making all for tweak MrJump
==> Preprocessing Tweak.xm
==> Compiling Tweak.xm (armv7)…
Tweak.xm:56:213: error: expected class member or base class name
  ...FBInterstitialAdInternal* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1):(bool) {
                                                                                            ^
Tweak.xm:56:213: error: expected '{' or ','
Tweak.xm:56:212: error: only constructors take base initializers
  ...FBInterstitialAdInternal* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1):(bool) {
                                                                                           ^
Tweak.xm:64:1: error: non-void function '_logos_method$_ungrouped$FBInterstitialAd$showAdFromRootViewController$' should return a value [-Wreturn-type]
return ;
^
4 errors generated.
make[3]: *** [/var/mobile/mrjump/.theos/obj/debug/armv7/Tweak.xm.ce589c5c.o] Error 1
make[2]: *** [/var/mobile/mrjump/.theos/obj/debug/armv7/MrJump.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [MrJump.all.tweak.variables] Error 2
Amirhosseins-iPad:/var/mobile/mrjump root# 

 

Posted

What’s your Tweak.xm?

Have you tried using the MSHook generator? :)

Posted (edited)

You didn't add the Class which those are found in.

(Never mind you did)

Updated by Fadexz

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