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

    • Mob Control v2.89.4 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 Cheats [ Unlimited Currencies ] - 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
      • 225 replies
    • Mob Control v2.89.4 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Mob Control v2.78.0 +7 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA 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
      • 128 replies
    • Grimguard Tactics: Fantasy RPG v1.14.0 +3 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - ViP 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/
        • Agree
        • Like
      • 123 replies
    • Grimguard Tactics: Fantasy RPG v1.14.0 +3 Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Jailed Cheats [ Auto Win ] - ViP Non-Jailbroken Hacks & 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/
        • Agree
        • Thanks
        • Winner
        • Like
      • 97 replies
    • Modern Community v1.17004.194765 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - ViP 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
      • 102 replies
    • Modern Community v1.17004.194765 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Modern Community v1.1008.81088 +1++ Jailed Cheat [ Unlimited Everything ] - ViP Non-Jailbroken Hacks & 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
      • 62 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - 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
        • Like
      • 19 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] MIST: Horror Idle Survival RPG v1.2 +4 Jailed Cheats [ Damage Multiplier ] - Free Non-Jailbroken IPA 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 47 replies
    • Nuclear Day Survival v0.139.7 +5 Jailed Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
        • Informative
        • Agree
        • Haha
        • Like
      • 12 replies
    • Nuclear Day Survival v0.139.7 +5 Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
        • Informative
        • Agree
        • Winner
        • Like
      • 14 replies
    • Lost Enders v1.9.6 +3 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Lost Enders v1.0.4 +2 Cheats [ God / O-HK ] - 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/
        • Thanks
        • Winner
        • Like
      • 37 replies
    • Lost Enders v1.9.6 +3 Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Lost Enders v1.0.4 +2 Jailed Cheats [ God / O-HK ] - Free Non-Jailbroken IPA 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/
        • Agree
        • Thanks
        • Winner
        • Like
      • 70 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