Jump to content

KingRalph

Senior Member
  • Posts

    1,300
  • Joined

  • Last visited

Everything posted by KingRalph

  1. If you don't know what it is, don't use it.
  2. shc does that for you. It converts your script into c source code and compiles it with gcc
    1. Arberlicous

      Arberlicous

      Maybe you should reply to DiDA first. I don't know how he has the endurance to help people so much, but he does

  3. To obfuscate it so that nobody can leech/modify the code *cough* iOSCheats *cough*
  4. I'm not getting the error from theos I'm using another program called shc
  5. No it wouldn't. A script can have a exit code of 0 and still be riddled with bugs
  6. Here I go... An exit code that is 0 means that the process was successful. An exit code that is greater than 0 means that the process was unsuccessful. Simple right? Also, the exit code is relatively useless. It doesn't explicitly (or implicitly) tell me the solution to the error
  7. The exit status is clearly displayed in the screenshot
  8. I've been experimenting with shc and trying to figure out how to compile a shell script. Everytime I try and compile my shell script, I get this error: http://imgur.com/6npngP7.jpg Does anyone have any solutions? Thanks in advance
  9. Put this code in the preinst script: #!/bin/sh cd /usr/bin if [ -f "*lipoARM64*" ] then rm -f -- *lipoARM64* fi exit 0 It will remove all files in the /usr/bin directory that contain the string lipoARM64 in their name Also, the variable 'dir' in the postinst script is useless. It is not used in lipoARM64 or the postinst @DiDA
  10. I got my jailbreak back ^_^

    1. Show previous comments  4 more
    2. KingRalph

      KingRalph

      @DiDA yup :D

       

    3. Rook

      Rook

      You know what to do with them now :admin:

    4. KingRalph

      KingRalph

      I can't lock my own topics :3

    5. Rook

      Rook

      You don't lock them. Just state how you fixed it and mark solved and then let it live :D

    6. KingRalph
  11. Get a copy from the cydia substrate framework header folder
  12. If you don't call %orig, you overide the apps original code with your own. In most cases the game will still work, but it's not advisable to do so.
  13. Cool Edit: Aren't you supposed to add %orig; to this function? %hook AppDelegate - (void)applicationDidBecomeActive:(id)application { NSUserDefaults *validate = [NSUserDefaults standardUserDefaults]; NSString *alreadyRun = @"already_run"; if ([validate boolForKey:alreadyRun]) return; [validate setBool:YES forKey:alreadyRun]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test Title" message:@"Test Message" delegate:nil cancelButtonTitle:@"Close Test Pop-Up" otherButtonTitles:nil]; [alert show]; [alert release]; } %end Also, I think you place the %new outside of the function %hook AppDelegate -(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test Title" message:@"Test Message" delegate:self cancelButtonTitle:@"Close Test Pop-Up" otherButtonTitles:@"Test Link", nil]; [alert show]; [alert release]; return %orig(); %new } -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if(buttonIndex !=alertView.cancelButtonIndex) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.test.com"]]; } } %end
×
  • 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