I was debugging why something isn't working, and then I realized CopyAddress::get_offset() is copying too many bytes. My program is 64bit, whereas the game I read from is 32bit.
I believe the culprit is this: https://github.com/Tommoa/rs-process-memory/blob/5bd1055857dab817e54a12c3c2a3523c338d90ac/src/windows.rs#L46 Why are we using from_native() here? I thought the whole point of having Architecture was to support reading from 32bit processes? Gonna work on a fix while waiting for replies.
If I miss something, sorry, I'm new to rust :).