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

    • Dawn of Zombies: Survival Game +8 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Zombies: Survival Game By VISTREX LIMITED
      Bundle ID: com.survival.dawn
      iTunes Store Link: https://apps.apple.com/us/app/dawn-of-zombies-survival-game/id1465954247?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Speed Multiplier
      - Split Hack
      - No Energy Cost
      - Max Level -> Earn some XP.


      Jailbreak required hack(s): [Mod Menu Hack] Dawn of Zombies: Survival Game v2.250 +6 Cheats [ Damage & Defence ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 371 replies
    • Galaxy Backpack Survivor v1.13.1 [ +2 Cheats ] Buttle Currency
      Modded/Hacked App: Galaxy Backpack Survivor By Waros Games LLC.
      Bundle ID: com.warosgames.galaxy
      App Store Link: https://apps.apple.com/us/app/galaxy-backpack-survivor/id6751177860?uo=4

      🤩 Hack Features

      - Battle Currency
      - Merge Any Items
        • Like
      • 0 replies
    • Galaxy Backpack Survivor v1.13.1 [ +2 Jailed ] Buttle Currency
      Modded/Hacked App: Galaxy Backpack Survivor By Waros Games LLC.
      Bundle ID: com.warosgames.galaxy
      App Store Link: https://apps.apple.com/us/app/galaxy-backpack-survivor/id6751177860?uo=4

      🤩 Hack Features

      - Battle Currency
      - Merge Any Items
      • 0 replies
    • NIGHT SURVIVORS v1.2 [ +4 Cheats ] Currency Max
      Modded/Hacked App: NIGHT SURVIVORS By KENGO SUETANI
      Bundle ID: com.fdjed.minionsurvivors
      App Store Link: https://apps.apple.com/us/app/night-survivors/id6781872410?uo=4

      🤩 Hack Features

      - Auto Ads No
      - Gems Max
      - Gold Max
      - Immortal
      • 0 replies
    • NIGHT SURVIVORS v1.2 [ +4 Jailed ] Currency Max
      Modded/Hacked App: NIGHT SURVIVORS By KENGO SUETANI
      Bundle ID: com.fdjed.minionsurvivors
      App Store Link: https://apps.apple.com/us/app/night-survivors/id6781872410?uo=4

      🤩 Hack Features

      - Auto Ads No
      - Gems Max
      - Gold Max
      - Immortal
      • 0 replies
    • Heroic Tower Defense v1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Heroic Tower Defense By HO Xuan Thu
      Bundle ID: com.heroic.defense
      App Store Link: https://apps.apple.com/us/app/heroic-tower-defense/id6752958629?uo=4

      🤩 Hack Features

      - Gems Max
      - Gold Max
      - Immortal
      - ATK Max
      • 0 replies
    • Heroic Tower Defense v1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Heroic Tower Defense By HO Xuan Thu
      Bundle ID: com.heroic.defense
      App Store Link: https://apps.apple.com/us/app/heroic-tower-defense/id6752958629?uo=4

      🤩 Hack Features

      - Gems Max
      - Gold Max
      - Immortal
      - ATK Max
      • 0 replies
    • Golden Voyage v1.0.11 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Golden Voyage By Seanear Limited
      Bundle ID: com.fw.gilded.treasure.adventure.rpg
      App Store Link: https://apps.apple.com/us/app/golden-voyage/id6746107242?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Speed 2x Active
      - Gems Max
      - Gold Max
      - EXP Max
      - Battle Coins Max
      - Hero Level Up Medal
      - Scrolls Max
      - Hero Shaders
      • 0 replies
    • Golden Voyage v1.0.11 [ +9 jailed ] Currency Max
      Modded/Hacked App: Golden Voyage By Seanear Limited
      Bundle ID: com.fw.gilded.treasure.adventure.rpg
      App Store Link: https://apps.apple.com/us/app/golden-voyage/id6746107242?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Speed 2x Active
      - Gems Max
      - Gold Max
      - EXP Max
      - Battle Coins Max
      - Hero Level Up Medal
      - Scrolls Max
      - Hero Shaders
      • 0 replies
    • SkyLand Rush - Air Raid Attack v3.1.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: SkyLand Rush - Air Raid Attack By LazyLand LTD
      Bundle ID: com.lazyland.skylandsaga
      App Store Link: https://apps.apple.com/us/app/skyland-rush-air-raid-attack/id1294595689?uo=4

      🤩 Hack Features

      - Coins Max / Win Battle 
      - HP Max 100
      - ATK MAX
      • 0 replies
    • SkyLand Rush - Air Raid Attack v3.1.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: SkyLand Rush - Air Raid Attack By LazyLand LTD
      Bundle ID: com.lazyland.skylandsaga
      App Store Link: https://apps.apple.com/us/app/skyland-rush-air-raid-attack/id1294595689?uo=4

      🤩 Hack Features

      - Coins Max / Win Battle 
      - HP Max 100
      - ATK MAX
      • 0 replies
    • Abyssal Soul +2 Jailed Cheats
      Modded/Hacked App: Abyssal Soul By ChillyRoom Inc.
      Bundle ID: com.chillyroom.containerofsoul
      App Store Link: https://apps.apple.com/us/app/abyssal-soul/id6466164178?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

      Adjust Value → Restart Game

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Agree
        • Thanks
        • Winner
        • Like
      • 24 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