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

    • Spin Squad! v1.6.2 [ +2 Cheats ] Battle Coins
      Modded/Hacked App: Lucky Offense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.luckyrolling
      iTunes Store Link: https://apps.apple.com/us/app/lucky-offense/id6511224968?uo=4


      🤩 Hack Features

      - Battle Coins
      - ATK
      - ATK Range
      - ATK Speed

      ATK Linked Enemy
      • 89 replies
    • Idle Monkey Bagpack War v1.0.9 [ +3 Jailed ] Battle Coin
      Modded/Hacked App: Idle Monkey: Bagpack War By 永进 何
      Bundle ID: com.letui.backpack.ios
      iTunes Store Link: https://apps.apple.com/us/app/idle-monkey-bagpack-war/id6670150325?uo=4


      🤩 Hack Features

      - ADS
      - Battle Coins
      - HP
      • 8 replies
    • Galaxy Pirates - space attack v1.1.1 [ +14 Jailed ] Currency Max
      Modded/Hacked App: Galaxy Pirates - space attack By 军 黄
      Bundle ID: com.allenjoy.galaxypirates
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-pirates-space-attack/id6475720088?uo=4

        

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Mission Rewards

      - Ship Upgrade Cost 0

      - Ship Unlock Cost 0

      - Magnet Range

      - Bullet Max 30

      - Bullet Speed

      - HP [ Linked With Card Just Unlock ]

      - DMG [ Linked With Card Just Unlock ]

      - Coins Bonus [ Linked With Card Just Unlock ]

      - Lucky [ Linked With Card Just Unlock ]

      - Super Time [ Linked With Card Just Unlock ]
      • 9 replies
    • Galaxy Pirates - space attack v1.1.1 [ +14 Cheats ] Currency Max
      Modded/Hacked App: Galaxy Pirates - space attack By 军 黄
      Bundle ID: com.allenjoy.galaxypirates
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-pirates-space-attack/id6475720088?uo=4
       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Mission Rewards

      - Ship Upgrade Cost 0

      - Ship Unlock Cost 0

      - Magnet Range

      - Bullet Max 30

      - Bullet Speed

      - HP [ Linked With Card Just Unlock ]

      - DMG [ Linked With Card Just Unlock ]

      - Coins Bonus [ Linked With Card Just Unlock ]

      - Lucky [ Linked With Card Just Unlock ]

      - Super Time [ Linked With Card Just Unlock ]
      • 5 replies
    • Magic Brick Wars v1.4.2 [ +4 Cheats ] Always Win
      Modded/Hacked App: Magic Brick Wars By Halfbrick
      Bundle ID: com.halfbrick.brickwars
      iTunes Store Link: https://apps.apple.com/us/app/magic-brick-wars/id1330800318?uo=4


      🤩 Hack Features

      - Mana Cost 0
      - Units [ Deploy Unlimited ]
      - Enemy No Units
      - Enemy No Blocks
      • 11 replies
    • Magic Brick Wars v1.4.2 [ +4 Jailed ] Always Win
      Modded/Hacked App: Magic Brick Wars By Halfbrick
      Bundle ID: com.halfbrick.brickwars
      iTunes Store Link: https://apps.apple.com/us/app/magic-brick-wars/id1330800318?uo=4


      🤩 Hack Features

      - Mana Cost 0
      - Units [ Deploy Unlimited ]
      - Enemy No Units
      - Enemy No Blocks
      • 10 replies
    • Idle Monkey Bagpack War v1.0.9 [ +3 Cheats ] Battle Coin
      Modded/Hacked App: Idle Monkey: Bagpack War By 永进 何
      Bundle ID: com.letui.backpack.ios
      iTunes Store Link: https://apps.apple.com/us/app/idle-monkey-bagpack-war/id6670150325?uo=4
       

      🤩 Hack Features

      - ADS
      - Battle Coins
      - HP
      • 3 replies
    • DESERTOPIA v4.20.5 [ +1 Cheats ] Gems Max
      Modded/Hacked App: DESERTOPIA By Gamtropy Co., Ltd.
      Bundle ID: com.gamtropy.desertopia
      iTunes Store Link: https://apps.apple.com/us/app/desertopia/id1265572046?uo=4


      🤩 Hack Features

      - Gems Max [ Earn Some ]
      • 3 replies
    • DESERTOPIA v4.20.5 [ +1 Jailed ] Gems Max
      Modded/Hacked App: DESERTOPIA By Gamtropy Co., Ltd.
      Bundle ID: com.gamtropy.desertopia
      iTunes Store Link: https://apps.apple.com/us/app/desertopia/id1265572046?uo=4
       

      🤩 Hack Features

      - Gems Max [ Earn Some ]
      • 1 reply
    • [ Arknights China ] 明日方舟 Cheats v2.6.21 +8
      Modded/Hacked App: 明日方舟 By Shanghai Hypergryph Network Technology Co., Ltd.
      Bundle ID: com.hypergryph.arknights
      iTunes Store Link: https://apps.apple.com/cn/app/%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F/id1454663939?uo=4


      Hack Features:
      - God Mode
      - Frozen Enemies
      - One Hit Kill
      - Instant - Win
      - No Deploy Cost
      - Multiply Damage
      - Multiply Defense
      - Multiply Character Speed


      iOS Hack Download Link: https://iosgods.com/topic/149509-arknights-china-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-cheats-v1560-8/
      • 315 replies
    • Meow Tower - Nonogram Puzzle v3.2.401 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Meow Tower - Nonogram Puzzle By HyperBeard Inc.
      Bundle ID: com.grapetree.meowtower
      iTunes Store Link: https://apps.apple.com/us/app/meow-tower-nonogram-puzzle/id1579122980?uo=4
       

      🚀 Hack Features

      - ADS NO
      - Gold CANS
      - Pencil Max 
      - Hints Max 
      • 11 replies
    • Meow Tower - Nonogram Puzzle v3.2.401 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Meow Tower - Nonogram Puzzle By HyperBeard Inc.
      Bundle ID: com.grapetree.meowtower
      iTunes Store Link: https://apps.apple.com/us/app/meow-tower-nonogram-puzzle/id1579122980?uo=4


      🚀 Hack Features

      - ADS NO
      - Gold CANS
      - Pencil Max 
      - Hints Max
      • 5 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