Jump to content

306 posts in this topic

Recommended Posts

Posted

As I see, 20008052C0035FD6 sets the integer to 1 and returns the function. The Assembly code of that hex looks like this

movz w0, #0x1
ret

and it works with function like public int GetQuantity() { }

1. How can I sets the integer to 1000 instead of 1?

2. How can I deal with void function? Example, make public void SubItem() { } do nothing, to keep the amount of item frozen.

Thank a lot.

Posted
13 minutes ago, ngphong98001 said:

As I see, 20008052C0035FD6 sets the integer to 1 and returns the function. The Assembly code of that hex looks like this

movz w0, #0x1
ret

and it works with function like public int GetQuantity() { }

1. How can I sets the integer to 1000 instead of 1?

2. How can I deal with void function? Example, make public void SubItem() { } do nothing, to keep the amount of item frozen.

Thank a lot.

movz w0, #0x3E8
ret
  • Like 1

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