Jump to content

7 posts in this topic

Recommended Posts

Posted (edited)

Hey, so, I'm hacking a game, and need to return these functions as bool:

CProgressUtilImpl::IsLevelUnlocked(int) 

As you can see it is classified as an int by IDA...

 

How do I write it to return as a boolean?

static bool UnlockLevel() {
return true;
}
%ctor {
MSHookFunction(MSFindSymbol(NULL, "____ZNK17CProgressUtilImpl15IsLevelUnlockedEi"),(bool*)UnlockLevel, NULL); 
}

 

 

Dosnt work, what do I do?

 

Change the bool (bold text in the code) to int, or what?

Updated by Guest
Posted (edited)

You can try return 1 or 0.

 

I tried >_< For some reason, none of the functions I hack make any difference... tried many, and yes, I know it's bundle id is right, I added a alert. :(

Updated by Guest
Posted

I tried >_< For some reason, none of the functions I hack make any difference... tried many, and yes, I know it's bundle id is right, I added a alert. :(

Nothing at all?

 

Which game is it?

Posted

Nothing at all?

 

Which game is it?

 

Candy Crush ._.

 

So weird..nothing changes...

Trying using GDB just doesn't work, it sucks... sometimes it won't notice if the value changes or not, even though it is the right offset and I have tested it with GamePlayer, sometimes it just give weird errors, something with wasabi or whatever, lol... so yea.. fck GDB.

Posted

Candy Crush ._.

 

So weird..nothing changes...Trying using GDB just doesn't work, it sucks... sometimes it won't notice if the value changes or not, even though it is the right offset and I have tested it with GamePlayer, sometimes it just give weird errors, something with wasabi or whatever, lol... so yea.. fck GDB.

seND me your tweak file I will fix it in abit if you want

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
×
  • 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