Jump to content

4 posts in this topic

Recommended Posts

Posted

So I'm very new to this, I've only done things so far with iGameGuardian and Flex. I wanted to try to make a MS Tweak that just launches a Ui on app launch with a message and links. I got the layout for it (I tend to learn best from reverse engineering others examples then reworking it) from someone's tutorial on here.

I did make package install and it installed. I added the apps bundle to the plist and searched the method in Flex. When I launch the app nothing happens. 

Tweak.xm:

	%hook ENAppDelegate
	-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
	UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Tactile Wars Tweak"
message:@"by Jax2120" delegate:self cancelButtonTitle:@"Thanks"                       otherButtonTitles:@"Visit Me", nil]; 
[alert show];
[alert release]; 
return %orig();
%new
}
	-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
       if(buttonIndex !=alertView.cancelButtonIndex) 
{ 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/profile/572545-jax2120/"]];                                                                              
        }
}
	%end 
	

Posted

Make sure that the hook match in flex?

Posted (edited)
6 hours ago, Amuyea said:

Make sure that the hook match in flex?

Yep. Flex says ENAppDelegate and FBSDKApplicationDelegate. I've tried both. On another app I am trying this for, the app I'd rather it work on, it says UnityAppController and AppEventListener. Neither work.

Updated by Jax2120
Posted (edited)

My plist if it helps:

@Amuyea

	<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Filter</key>
  <dict>
    <key>Bundles</key>
    <array>
      <string>com.apple.springboard</string>
      <string>com.ankama.tactilwars</string>
      <string>com.lightricks.Enlight-Editor</string>
    </array>
  </dict>
</dict>
</plist>
	
Updated by Jax2120

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