Jump to content

tweak.xm errors and .plist question


Go to solution Solved by AnotherLurker,

4 posts in this topic

Recommended Posts

Posted

hi im new and i am having trouble with my tweak.xm code

  %hook YTVideoMetadataCell

-(void) setOfflineButtonVisible:(bool)argument1 dimmed:(bool)argument2 animated:(bool) {
if(GetPrefBool(@"key11")) {
argument1 = TRUE;
}
return %orig;
}
%end
 
%hook YTPlaylistHeaderView
-(void) setOfflineButtonVisible:(bool)argument1 dimmed:(bool) {
if(GetPrefBool(@"key11")) {
argument1 = TRUE;
}
return %orig;
}
%end
thats my tweak .xm and i got that from flex^^
Tweak.xm:58:168: error: expected class member or base class name
  ...self, SEL _cmd, bool argument1, bool argument2):(bool) {
                                                     ^
Tweak.xm:58:168: error: expected '{' or ','
Tweak.xm:58:167: error: only constructors take base initializers
  ...self, SEL _cmd, bool argument1, bool argument2):(bool) {
                                                    ^
Tweak.xm:67:145: error: expected class member or base class name
  ...self, SEL _cmd, bool argument1):(bool) {
                                     ^
Tweak.xm:67:145: error: expected '{' or ','
Tweak.xm:67:144: error: only constructors take base initializers
  ...self, SEL _cmd, bool argument1):(bool) {
this is error^^
also in preference bundel how would i make a switch disable/greyed out if a certain switch is turned on thanks
 
 
Posted

Not sure if this would help anything, but I don't think you're supposed to have a space in your method, like where it says "argument1 dimmed," that should just be "argument1" or "dimmed." Something along those lines


Also, both methods have (bool) at the end, but no name for that bool. Although there may be nothing in Flex for it, put something after those

  • Solution
Posted (edited)
%hook YTVideoMetadataCell
- (void)setOfflineButtonVisible:(bool)argument1 dimmed:(bool)argument2 animated:(bool)argument3 {
     if(GetPrefBool(@"key11")) {
        argument1 = TRUE;
     }

     return %orig;
}
%end
 
%hook YTPlaylistHeaderView
- (void)setOfflineButtonVisible:(bool)argument1 dimmed:(bool)argument2 {
     if(GetPrefBool(@"key11")) {
        argument1 = TRUE;
     }

     return %orig;
}
%end

You need to add names to all the arguments, I added 'argument3' to animated, and 'argument2' to dismissed

Updated by JustRick
Posted
  On 8/27/2016 at 2:39 AM, JustRick said:

 

%hook YTVideoMetadataCell
- (void)setOfflineButtonVisible:(bool)argument1 dimmed:(bool)argument2 animated:(bool)argument3 {
     if(GetPrefBool(@"key11")) {
        argument1 = TRUE;
     }

     return %orig;
}
%end
 
%hook YTPlaylistHeaderView
- (void)setOfflineButtonVisible:(bool)argument1 dimmed:(bool)argument2 {
     if(GetPrefBool(@"key11")) {
        argument1 = TRUE;
     }

     return %orig;
}
%end
You need to add names to all the arguments, I added 'argument3' to animated, and 'argument2' to dismissed

This definitely helped but my other question was how would I be able to disable a switch from being turned on if a certain other switch is enabled. What would I need to type/code?

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

    • Triple Fantasy v7.81.0 +2 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Triple Fantasy By Gameplete
      Bundle ID: com.Gameplete.CardFantasy
      iTunes Store Link: https://apps.apple.com/us/app/triple-fantasy/id1018725872?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
        • Like
      • 6 replies
    • Triple Fantasy v7.81.0 +2 Cheats [ Damage & Defence ]
      Modded/Hacked App: Triple Fantasy By Gameplete
      Bundle ID: com.Gameplete.CardFantasy
      iTunes Store Link: https://apps.apple.com/us/app/triple-fantasy/id1018725872?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
        • Like
      • 4 replies
    • Tiny Defense - Tower Defense v0.3.0 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Tiny Defense - Tower Defense By jeongwoo park
      Bundle ID: com.bumbloo.tinydefense
      App Store Link: https://apps.apple.com/us/app/tiny-defense-tower-defense/id6520386369?uo=4

       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Battle Coins

      - Fingerprint Box Coins

      - Premium Box

      - Common Box

      - ATK

      - ATK Speed

      Disable Currency After Hack
        • Winner
        • Like
      • 7 replies
    • Tiny Defense - Tower Defense v0.3.0 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Tiny Defense - Tower Defense By jeongwoo park
      Bundle ID: com.bumbloo.tinydefense
      App Store Link: https://apps.apple.com/us/app/tiny-defense-tower-defense/id6520386369?uo=4
       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Battle Coins

      - Fingerprint Box Coins

      - Premium Box

      - Common Box

      - ATK

      - ATK Speed

      Disable Currency After Hack
      • 1 reply
    • Cup Quest - Hero's Journey v1.3 [+3 Cheats]
      Modded/Hacked App: Cup Quest - Hero's Journey By DOGSTER TECHNOLOGIES PRIVATE LIMITED
      Bundle ID: com.felicity.cupquest
      App Store Link: https://apps.apple.com/us/app/cup-quest-heros-journey/id6742395137?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
      - Unlock Double Speed
        • Like
      • 2 replies
    • Cup Quest - Hero's Journey v1.3 [+3 Jailed Cheats]
      Modded/Hacked App: Cup Quest - Hero's Journey By DOGSTER TECHNOLOGIES PRIVATE LIMITED
      Bundle ID: com.felicity.cupquest
      App Store Link: https://apps.apple.com/us/app/cup-quest-heros-journey/id6742395137?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
      - Unlock Double Speed
        • Like
      • 1 reply
    • Idle Dungeon Manager v1.7.6 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Idle Dungeon Manager By ColdFire Games GmbH
      Bundle ID: com.coldfiregames.dungeon.manager.tycoon.idle.game
      App Store Link: https://apps.apple.com/us/app/idle-dungeon-manager/id1538761888?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Currency

      - Resources

      - Stars

      - ATK HP SH [ Hero Up ] Tested Not
        • Agree
        • Winner
        • Like
      • 0 replies
    • Idle Dungeon Manager v1.7.6 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Idle Dungeon Manager By ColdFire Games GmbH
      Bundle ID: com.coldfiregames.dungeon.manager.tycoon.idle.game
      App Store Link: https://apps.apple.com/us/app/idle-dungeon-manager/id1538761888?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Currency

      - Resources

      - Stars

      - ATK HP SH [ Hero Up ] Tested Not
        • Like
      • 2 replies
    • Knights of Pen and Paper 3 v1.4.1 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

        • Like
      • 0 replies
    • Knights of Pen and Paper 3 v1.4.1 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

        • Thanks
      • 1 reply
    • Eternium Cheats v1.34.12 +11
      Modded/Hacked App: Eternium By Making Fun, Inc.
      Bundle ID: com.makingfun.mageandminions
      iTunes Store Link: https://apps.apple.com/us/app/eternium/id579931356?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

      - 5K Gems When Completed Stage
      - Infinite Gold
      - Infinite Cosmetic
      - Infinite Yellow Stone
      - Multiply Attack (Linked with Enemy)
      - No Skills Cooldown
      - No Consumable Cooldown
      - Multiply Attack Speed
      - Instant Regen Health
      - Always Crit
      - Material Drops (When you killed an Enemy it will drop materials for crafts)



      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194526-eternium-cheats-v13355-6/
        • Informative
        • Winner
        • Like
      • 41 replies
    • June’s Journey: Hidden Objects v3.34.4 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 42 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