I tested various sources in my device, and tested parts at parts and i detected what if using while and sleep in the source, the game close, but removing, the cheat don't work.
I would guess that you mean with device a hook like endscene and in a hook you already have a loop so if you use while(1) it will be crash because you are trying to make a loop inside from a loop. And if you use sleep inside the hook it will be call sleep the whole time and the game will freeze.
you are freezing the game thread ...
create a new thread or just do your stuff without loop and your hook should call your function ..
Originally Posted by I2espect
you are freezing the game thread ...
create a new thread or just do your stuff without loop and your hook should call your function ..