This is the AMP version of this page.
If you want to load the real page instead, click this text.

Solved Confusion on HEX

Status
Not open for further replies.
Hello dear forum members,
I found an internal void AddCurrency()
{
}
Pulled it's offset "BED8E4" up in HxD and decided to covert the hex to arm

My HEX code is C0 03 5F D6 which is ret in arm

My question what exactly is ret what does it do and what are some HEX codes I might replace this with?

Thank you for your time in advance it is really appreciated!
 
"NOP just kills one line of the code, if you wanna close the method after you have to close it with RET which is C0 03 5F D6" a reply by g-bo to someone so this answers that part of my question but why is this function being closed in this game opposed to returning any values?
 
ret means return the value to its (your) new hex code, or simple like freeze the value (gold, gem) rather than decreasing or increasing the value.

ret is for armv64


and bx lr is for armv7
 
but why is this function being closed in this game opposed to returning any values?
Unless you learn programming, you wont know the answer to your question, since it has to do with function types.
For this time I'll answer your question: a void function never returns any value.

You should learn programming if you eventually want to improve as a modder.
Also, that question could've been answered with a single google search. You should start using it, becaus it's faster than awaiting somebody else's answer.
 
Status
Not open for further replies.