| View previous topic :: View next topic |
| Author |
Message |
Taibreah Cheater
Reputation: 0
Joined: 19 Mar 2014 Posts: 35
|
Posted: Thu Sep 29, 2016 11:36 pm Post subject: Arbitrary value for check comparisons |
|
|
Hi again. I came across the following code for the "Serious Sam First Encounter HD v1.0" table topic. I am wondering if the 79616C70 in the check is an actual value or if it is being used as an arbitrary value to force the code to jump to the originalcode. Just the fact the it translates to "play" in hex is what had me curious about it. If this is just an arbitrary code, is that a good way to go about doing check comparisons, or is it something that should avoided? Thanks.
| Code: |
mov ecx,[esi+012C] //save address on the pointer to ecx
cmp [ecx],79616C70 //check the address where the pointer is pointing
jne originalcode //if the result is not 79616C70 (which is "play" in hex) then jump
mov [esi+00000470],270F //change health to 9999
originalcode:
popad
popfd
cmp [esi+00000478],eax //and this is the original code already
|
|
|
| Back to top |
|
 |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Fri Sep 30, 2016 7:23 am Post subject: |
|
|
It might be a string value that is set when you are ingame. It's really up to you to decide what kind of value you want to choose to do this kind of check, either you find an InGame boolean, or doing what this guy did, which is checking if a particular string is there or not.
_________________
|
|
| Back to top |
|
 |
Taibreah Cheater
Reputation: 0
Joined: 19 Mar 2014 Posts: 35
|
Posted: Fri Sep 30, 2016 2:18 pm Post subject: |
|
|
| Okay, thanks. Yeah, I re-read the original post again and he mentioned that there is a pointer on esi+012C which is pointing to a string.
|
|
| Back to top |
|
 |
|