Jump to content

KingRalph

Senior Member
  • Posts

    1,300
  • Joined

  • Last visited

Posts posted by KingRalph

  1. 23 hours ago, SmashAndClash said:

    Still not there.. I'm sorry this is probably bugging you.

    You won't find it there because cydia moves the Applications folder location to conserve disk space.

    Run this command in terminal

    rm /Applications/iGameGuardian.app/iGG7Files/com.apple.gg.daemon.plist
  2. Didn't work :p

     

    I think I tried that before, how would I write it in tweak.xm? Could you write the line :)

     

    Edit 1: Also, I tried many typedefs and nothing worked. Exemple :

    typedef struct _MAIN_STRUCT;

     

    %hook MyGameMain

    -(int) SYS_GetRemainderJewel:(_MAIN_STRUCT*)arg1 {

    if(GetPrefBool(@"kJewels")) {

    return 999999;

    }

    return %orig;

    }

    %end

    @interface _MAIN_STRUCT
    @end
    %hook MyMainGame
    - (int)SYS_GetRemainderJewel:(_MAIN_STRUCT*)arg1 {
    return 999999;
    }
     
    %end
    
  3. ^already tried this before and got this error : Compiling Tweak.xm...

    Tweak.xm:15:85: error: too many arguments to function call,

    expected 3, have 4

    ..._logos_orig$_ungrouped$MyMainGame$SYS_GetRemainderJewel$(self, _cmd, 999999, arg1);

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~

    1 error generated.

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

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

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

    Anonymous:/var/mobile/abhack root#

     

     

    You tell me it's (id) and castix tells me it's (void*) I tried so many things and it either gives me errors or it compiles without working :(

     

    Oops, my bad :c
    %hook MyMainGame
    - (int)SYS_GetRemainderJewel:(id)arg1 {
    return 999999;
    }
     
    %end
    
  4. Lanouar is going to teach me how to hack it using offsets :) but thanks for the help :D

    %hook MyMainGame
    - (int)SYS_GetRemainderJewel:(id)arg1 {
    return %orig(999999, arg1);
    }
    %end

    You need to learn more about programming objective c ;)

×
  • 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