Skip to content
Guest Big Announcement

MS HOOKING template ?

Featured Replies

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

  • Author
> 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# 

 

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.