Skip to content
Guest Big Announcement

Featured Replies

Hello, im making a patcher. When i compile my patcher i get this error:

 

theos/bin/lib/aliased.pm line 42.

logos: warnings being treated as errors

Tweak.xm:60: warning: missing %end (%hook opened at Tweak.xm:36 extends to EOF)

make[2]: *** [obj/Tweak.xm.dbc43aba.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [happywheels.all.tweak.variables] Error 2

Iphone:/var/mobile/happywheels root#

 

Here's my tweak.xm:

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.happywheels.plist"

 

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook Session

 

-(float)gravity {

if(GetPrefBool(@"key1")) {

return -5.00f;

}

return %orig;

}

 

%end

 

%hook CharacterB2D

 

-(void)addNeckWoundToChest {

if(GetPrefBool(@"key2")) {

}

return %orig;

}

 

%end

 

 

/* Popup with a link

 

Varieties of a UIAlertView Popup can be found here: http://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/

 

*/

 

 

%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

 

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

UIAlertView *igcredits = [[uIAlertView alloc] initWithTitle:@"happywheels Cheats"

message:@"\nhappywheels Cheats by axce for iOSGods.com"

delegate:self

cancelButtonTitle:@"Thanks"

otherButtonTitles:@"Visit Us", nil];

[igcredits show];

[igcredits release];

return %orig();

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

 

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

 

if([button isEqualToString:@"Visit Us"])

{

[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/]];

}

}

%vgvvvggtend

 

Where is the problem? Please help.

Solved by Goggwell

  • Author

Yeah your %end is messed up bud :p

Oh Didn't saw it :3

Thanks!!

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.