Jump to content

Please correct my tweak.xm


Go to solution Solved by Ted2,

7 posts in this topic

Recommended Posts

Posted (edited)

Could someone please correct my tweak.xm?

 

@Ted2 You beast, you usually are good at this xD

 

Tweak.xm

#include <substrate.h>

%hook XBXAchievement

-(BOOL)isSecret {
return FALSE;
}
%end

%hook XBXAchievement

-(void)setIsSecret:(BOOL)arg1 {
arg1 = FALSE;
return %orig;
}
%end

%hook XBXSLSAchievementTileLocator

+(id)getTileSubPath:(id)arg1 dimensions:(unsigned short)arg2 achieved:(BOOL)arg3 secret:(BOOL) {
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

%hook XBXSLSAchievementTileLocator

+(id)getTileLocationForImageId:(unsigned int)arg1 fromTitleId:(unsigned int)arg2 achieved:(BOOL)arg3 secret:(BOOL) {
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

%hook XBXSLS360TitleAchievementsResponse

-(id)getAchievementImageUrl:(unsigned int)arg1 titleId:(unsigned int)arg2 achieved:(BOOL)arg3 secret:(BOOL) {
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

 

Error

Tweak.xm:20:176: error: expected class member or base class name
  ...SEL _cmd, id arg1, unsigned short arg2, BOOL arg3):(BOOL) {
                                                        ^
Tweak.xm:20:176: error: expected '{' or ','
Tweak.xm:20:175: error: only constructors take base initializers
  ...SEL _cmd, id arg1, unsigned short arg2, BOOL arg3):(BOOL) {
                                                       ^
Tweak.xm:22:1: error: use of undeclared identifier 'arg4'
arg4 = FALSE;
^
Tweak.xm:29:196: error: expected class member or base class name
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                      ^
Tweak.xm:29:196: error: expected '{' or ','
Tweak.xm:29:195: error: only constructors take base initializers
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                     ^
Tweak.xm:31:1: error: use of undeclared identifier 'arg4'
arg4 = FALSE;
^
Tweak.xm:38:220: error: expected class member or base class name
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                      ^
Tweak.xm:38:220: error: expected '{' or ','
Tweak.xm:38:219: error: only constructors take base initializers
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                     ^
Tweak.xm:40:1: error: use of undeclared identifier 'arg4'
arg4 = FALSE;
^
12 errors generated.
make[2]: *** [obj/Tweak.xm.f28eec72.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [XboxSmartGlassShowHiddenAchievements.all.tweak.variables] Error 2

 

Any help is appreciated.  (y)

Updated by Fadexz
Added a line XD Changed to solved.
Posted
8 minutes ago, Fadexz said:

Could someone please correct my tweak.xm?

 

Tweak.xm


#include <substrate.h>

%hook XBXAchievement

-(BOOL)isSecret {
return FALSE;
}
%end

%hook XBXAchievement

-(void)setIsSecret:(BOOL)arg1 {
arg1 = FALSE;
return %orig;
}
%end

%hook XBXSLSAchievementTileLocator

+(id)getTileSubPath:(id)arg1 dimensions:(unsigned short)arg2 achieved:(BOOL)arg3 secret:(BOOL) {
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

%hook XBXSLSAchievementTileLocator

+(id)getTileLocationForImageId:(unsigned int)arg1 fromTitleId:(unsigned int)arg2 achieved:(BOOL)arg3 secret:(BOOL) {
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

%hook XBXSLS360TitleAchievementsResponse

-(id)getAchievementImageUrl:(unsigned int)arg1 titleId:(unsigned int)arg2 achieved:(BOOL)arg3 secret:(BOOL) {
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

 

Error


Tweak.xm:20:176: error: expected class member or base class name
  ...SEL _cmd, id arg1, unsigned short arg2, BOOL arg3):(BOOL) {
                                                        ^
Tweak.xm:20:176: error: expected '{' or ','
Tweak.xm:20:175: error: only constructors take base initializers
  ...SEL _cmd, id arg1, unsigned short arg2, BOOL arg3):(BOOL) {
                                                       ^
Tweak.xm:22:1: error: use of undeclared identifier 'arg4'
arg4 = FALSE;
^
Tweak.xm:29:196: error: expected class member or base class name
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                      ^
Tweak.xm:29:196: error: expected '{' or ','
Tweak.xm:29:195: error: only constructors take base initializers
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                     ^
Tweak.xm:31:1: error: use of undeclared identifier 'arg4'
arg4 = FALSE;
^
Tweak.xm:38:220: error: expected class member or base class name
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                      ^
Tweak.xm:38:220: error: expected '{' or ','
Tweak.xm:38:219: error: only constructors take base initializers
  ...unsigned int arg1, unsigned int arg2, BOOL arg3):(BOOL) {
                                                     ^
Tweak.xm:40:1: error: use of undeclared identifier 'arg4'
arg4 = FALSE;
^
12 errors generated.
make[2]: *** [obj/Tweak.xm.f28eec72.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [XboxSmartGlassShowHiddenAchievements.all.tweak.variables] Error 2

 

Any help is appreciated.  (y)

I see the problem :) 

Simple fix

Posted
8 minutes ago, PrincessJayJay said:

I see the problem :) 

Simple fix

You probably shouldn't have quoted my message lol.

 

If you see the problem please correct it for me then.  :)

  • Solution
Posted
#include <substrate.h>

%hook XBXAchievement

-(BOOL)isSecret {
return FALSE;
}
%end

%hook XBXAchievement

-(void)setIsSecret:(BOOL)arg1 {
arg1 = FALSE;
return %orig;
}
%end

%hook XBXSLSAchievementTileLocator

+(id)getTileSubPath:(id)arg1 dimensions:(unsigned short)arg2 achieved:(BOOL)arg3 secret:(BOOL)arg4 { //Added arg4 after BOOL
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

%hook XBXSLSAchievementTileLocator

+(id)getTileLocationForImageId:(unsigned int)arg1 fromTitleId:(unsigned int)arg2 achieved:(BOOL)arg3 secret:(BOOL)arg4 { //Added arg4 after BOOL
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

%hook XBXSLS360TitleAchievementsResponse

-(id)getAchievementImageUrl:(unsigned int)arg1 titleId:(unsigned int)arg2 achieved:(BOOL)arg3 secret:(BOOL)arg4 { //Added arg4 after BOOL
arg3 = FALSE;
arg4 = FALSE;
return %orig;
}
%end

 

You were close, you forgot to add arg4 in the function name but did return it :)

  • Informative 1

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
  • Our picks

    • Real Survival: Not Fake v1.0.1 [ +5 APK MOD ] Currency Max
      Mod APK Game Name: Real Survival: Not Fake
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.devdop.realsurvivalnotfake

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Wood
      - Unlimited Meet
      • 1 reply
    • Real Survival: Not Fake v1.1.0 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Real Survival: Not Fake By Dan Lespect
      Bundle ID: com.devdop.realsurvivalnotfake
      App Store Link: https://apps.apple.com/us/app/real-survival-not-fake/id6777072156?uo=4

       

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Wood
      - Unlimited Meet

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 3 replies
    • Real Survival: Not Fake v1.1.0 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Real Survival: Not Fake By Dan Lespect
      Bundle ID: com.devdop.realsurvivalnotfake
      App Store Link: https://apps.apple.com/us/app/real-survival-not-fake/id6777072156?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Wood
      - Unlimited Meet
      • 1 reply
    • 거너거너 Guner Guner v1.0.1 [ +2 APK MOD ] ATK MAX
      Mod APK Game Name: 거너거너 Guner Guner
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.brightdawn.android.gngn

      🤩 Hack Features

      - HP MAX
      - ATK MAX
      • 0 replies
    • 거너거너 Guner Guner v1.0 [ +2 Cheats ] ATK MAX
      Modded/Hacked App: 거너거너 Guner Guner By Brightdawn Inc.
      Bundle ID: com.brightdawn.ios.gngn
      App Store Link: https://apps.apple.com/kr/app/%EA%B1%B0%EB%84%88%EA%B1%B0%EB%84%88/id6777852933?uo=4

      🤩 Hack Features

      - HP MAX
      - ATK MAX
      • 1 reply
    • 거너거너 Guner Guner v1.0 [ +2 Jailed ] ATK MAX
      Modded/Hacked App: 거너거너 Guner Guner By Brightdawn Inc.
      Bundle ID: com.brightdawn.ios.gngn
      App Store Link: https://apps.apple.com/kr/app/%EA%B1%B0%EB%84%88%EA%B1%B0%EB%84%88/id6777852933?uo=4
      🤩 Hack Features

      - HP MAX
      - ATK MAX
        • Like
      • 0 replies
    • Guildmaster v1.3.19 [ +3 APK MOD ] Currency Max
      Mod APK Game Name: Guildmaster Idle
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ElvenryStudios.Guildmaster&hl=en

      🤩 Hack Features

      - Runes Max
      - Gold Max
      - Inventory Items Max ++30
        • Agree
      • 0 replies
    • Guildmaster Idle v1.3.19 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Guildmaster Idle By Elvenry Studios Limited
      Bundle ID: com.ElvenryStudios.Guildmaster
      App Store Link: https://apps.apple.com/us/app/guildmaster-idle/id1588390905?uo=4

      🤩 Hack Features

      - Runes Max
      - Gold Max
      - Inventory Items Max ++30
      • 0 replies
    • Guildmaster Idle v1.3.19 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Guildmaster Idle By Elvenry Studios Limited
      Bundle ID: com.ElvenryStudios.Guildmaster
      App Store Link: https://apps.apple.com/us/app/guildmaster-idle/id1588390905?uo=4

      🤩 Hack Features

      - Runes Max
      - Gold Max
      - Inventory Items Max ++30
      • 0 replies
    • Mob Empire: City Gang Wars v2.4.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Mob Empire: City Gang Wars By Atari, Interactive
      Bundle ID: com.atari.mobile.krys
      App Store Link: https://apps.apple.com/ph/app/mob-empire-city-gang-wars/id1488481638?uo=4

      🤩 Hack Features

      - Cash (Increase not decrease)
      - Gold (Increase not decrease)
      - Tokens (Increase not decrease)
        • Informative
        • Like
      • 6 replies
    • Mob Empire: City Gang Wars v2.4.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Mob Empire: City Gang Wars By Atari, Interactive
      Bundle ID: com.atari.mobile.krys
      App Store Link: https://apps.apple.com/ph/app/mob-empire-city-gang-wars/id1488481638?uo=4

      🤩 Hack Features

      - Cash (Increase not decrease)
      - Gold (Increase not decrease)
      - Tokens (Increase not decrease)
        • Agree
        • Like
      • 2 replies
    • Era Merge v1.0.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Era Merge By ANLOFT YAZILIM LIMITED SIRKETI
      Bundle ID: com.anloft.eramerge
      App Store Link: https://apps.apple.com/us/app/era-merge/id6783998492?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Ticket
      • 0 replies
×
  • 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