Jump to content

Hackers: what would you prefer


Which option  

27 members have voted

  1. 1. choose

    • use variable arguments with a function called makeOffsets
      7
    • put offsets like this: {0x123456, 0x678954}
      20


20 posts in this topic

Recommended Posts

Posted (edited)

I'm making a mod menu template for practice with inheritance in objective c and after finishing it I realized I wanted to add slider support and a way to have hacks with multiple offsets.

 

focusing on the multiple offsets...

currently I have single offset hacks working. to add a hack to the mod menu, you can call a function called addHack, and so far the parameters are as follows:

addHack(@"Name of hack", @"Font name", offset, hex, originalHex);

and the feature is added to the menu.

 

I don't want to create tons of different addHack functions with support for different number of offsets because that's really really bad and lazy.

 

My first thought was to take advantage of variable lists (see here: https://www.tutorialspoint.com/cprogramming/c_variable_arguments.htm) but I soon realized that if I wanted to do this, I would have to rewrite some parts of the template to support vectors which is fine. What is not fine, however, is that I'd have to create a function to return a vector of the offsets that were passed in as parameters. Its not the fact that it is hard, its just that it could be better. This isn't the only solution, but the reason that I thought of this first was because i like the syntax of the function that would put the offsets into the vector :p

If I were to go with the first thought (and I called the function that made the vector makeVector), the addHack call would look like this:

addHack(@"Name of hack", @"Font name", makeVector(3, 0x443243, 0x837463, 0x283838), makeVector(3, 0x0120, 0x0020, 0x7047), makeVector(3, 0x0028, 0x0128, 0xf0b5));

 

the 3 in all of those calls is the number of arguments (or offsets you have put) so the computer knows how many arguments we are putting into the va_list (va = variable argument), and that is what I don't like. The call itself, to people who haven't had much coding experience, looks really odd.

 

Second thought:

use initializer lists from c++. While I will still have to write something that puts the elements from the list into a vector for use in the mod menu, there isn't any weird syntax, and it is safer than using va_*. If I were to go with this, here is what the call would look like:

addHack(@"Name of hack", @"Font name", {0x443243, 0x837463, 0x283838}, {0x0120, 0x0020, 0x7047}, {0x0028, 0x0128, 0xf0b5});

Looks much cleaner in my opinion, and takes much less code too. So, option 1 or option 2?

 

@ZahirSher

@Battousai

@Mayaxaya

@K1N5 PHo3niX

@DiDA

 

Updated by Guest
Posted
1 minute ago, KFCzZz said:

So much typing :WHY:

If you don't have a choice or a comment please don't respond.

Posted

My thought is that it's up to you. You know your codes more than any of us.

-

I like 2nd one 

Guest
This topic is now closed to further replies.
  • Our picks

    • Eliminate Undead v1.0 [+2 Cheats]
      Modded/Hacked App: Eliminate Undead By 学涛 曹
      Bundle ID: com.raidsquad.dianadian
      App Store Link: https://apps.apple.com/us/app/eliminate-undead/id6739250912?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
       
      • 0 replies
    • Eliminate Undead v1.0 [+2 Jailed Cheats]
      Modded/Hacked App: Eliminate Undead By 学涛 曹
      Bundle ID: com.raidsquad.dianadian
      App Store Link: https://apps.apple.com/us/app/eliminate-undead/id6739250912?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
      • 0 replies
    • Loot Lancer v1.0.1 [+3 Cheats]
      Modded/Hacked App: Loot Lancer By 学涛 曹
      Bundle ID: com.lootlancer.dianadian
      App Store Link: https://apps.apple.com/us/app/loot-lancer/id6743701566?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Skill Point
      - Unlimited Resources
      • 0 replies
    • Loot Lancer v1.0.1 [+3 Jailed Cheats]
      Modded/Hacked App: Loot Lancer By 学涛 曹
      Bundle ID: com.lootlancer.dianadian
      App Store Link: https://apps.apple.com/us/app/loot-lancer/id6743701566?uo=4


       

      🤩 Hack Features

      - Never Die
      - Unlimited Skill Point
      - Unlimited Resources
      • 0 replies
    • Z Survivor: Backpack Shooter v0.61 [+2 Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Z Survivor: Backpack Shooter v0.61 [+2 Jailed Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Informative
        • Agree
        • Winner
        • Like
      • 9 replies
    • Omega Royale - Tower Defense v1.5.0 [+2 Jailed Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4

       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Winner
        • Like
      • 36 replies
    • Omega Royale - Tower Defense v1.5.0 [+2 Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4


       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 36 replies
    • Townfall: Zombie Tower Defense v20.1.1 [+4 Cheats]
      Modded/Hacked App: Townfall: Zombie Tower Defense By Sugarscone
      Bundle ID: com.nmg.townfall.ios
      App Store Link: https://apps.apple.com/us/app/townfall-zombie-tower-defense/id6476259669?uo=4



      🤩 Hack Features

      - No Reload
      - Add Gold (Enable inside battle and finish stage)
      - Add Wood (Enable inside battle)
      - Skip Wave (Enable inside wave)
        • Agree
      • 6 replies
    • Townfall: Zombie Tower Defense v20.1.1 [+4 Jailed Cheats]
      Modded/Hacked App: Townfall: Zombie Tower Defense By Sugarscone
      Bundle ID: com.nmg.townfall.ios
      App Store Link: https://apps.apple.com/us/app/townfall-zombie-tower-defense/id6476259669?uo=4



      🤩 Hack Features

      - No Reload
      - Add Gold (Enable inside battle and finish stage)
      - Add Wood (Enable inside battle)
      - Skip Wave (Enable inside wave)
        • Winner
        • Like
      • 4 replies
    • Prison Break Idle v0.1.4 [+3 Cheats]
      Modded/Hacked App: Prison Break Idle By Anisoft Yazilim Derya Bagdinli ve Ortagi Kollektif Sirketi
      Bundle ID: com.anisoftgames.prisonbreakidle
      iTunes Store Link: https://apps.apple.com/us/app/prison-break-idle/id6739884706?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Spend to earn)
       
        • Like
      • 3 replies
    • Prison Break Idle v0.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Prison Break Idle By Anisoft Yazilim Derya Bagdinli ve Ortagi Kollektif Sirketi
      Bundle ID: com.anisoftgames.prisonbreakidle
      iTunes Store Link: https://apps.apple.com/us/app/prison-break-idle/id6739884706?uo=4

       

      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Spend to earn) 
        • Informative
        • Like
      • 6 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