There are many memory-altering programs out there nowadays, just mentioning
Cheat Engine. Is there an efficient way of keeping a static variable actually staying static?
I thought of two things to solve this.
- Making a separate thread which updates the static variable to the fix value, e.g. 200 every minute (yep, that interval would do) Problem: one can also alter this value.
- Storing the value on the server. Problem: I want to keep the network traffic as low as possible
I need this mechanism for both static variables (ones that never should change at all) and variables that are only allowed to contain a certain range of values, e.g. integers from 100 to 200.
Are there more efficient ways of doing this?