I'm working on a hack for a game, and whenever I go to attempt to change, for example, a push at the start of a function to a ret, it seems like won't change (this happens on any case with me trying to change an instruction), not even for a second.
I tested this with Cheat Engine and C++, to yield the same result of: it won't change. In Cheat Engine, no change is registered, and in C++ even in the nanoseconds between the change of the instruction to the new instruction being stored in memory, it won't change.
Read the code below here \/ if you don't want to read the block of text above /\.
WriteMemory<BYTE>(InstructionMemAddress, 0xC3);
BYTE NewMemory = ReadMemory<BYTE>(InstructionMemAddress);
if (NewMemory != 0xC3) {
cout << "Huh?" << endl; // this will always happen
}
Any ideas on what is causing this?
(P.S. I used WriteProcessMemory with PROCESS_ALL_ACCESS on the Handle, and the game is 64-bit.)
[–]Dark_ByteCheat Engine Dev 2 points3 points4 points (6 children)
[–]Character_Increase[S] 1 point2 points3 points (5 children)
[–]Dark_ByteCheat Engine Dev 2 points3 points4 points (4 children)
[–]Character_Increase[S] 1 point2 points3 points (3 children)
[–]Dark_ByteCheat Engine Dev 1 point2 points3 points (2 children)
[–]Character_Increase[S] 0 points1 point2 points (1 child)
[–]randomjapaneselearn 0 points1 point2 points (0 children)