public void _32BitWrite() { var cheatBlock = CheatBlock.Parse("20000020 11223344"); CheatEngine.PatchMemory(cheatBlock); var buffer = MockMemoryEditor.Read(0x00000020, 0x04); IsCheatApplied(cheatBlock.Cheats[0].Data, buffer); }
public void CopyBytes() { var cheatBlock = CheatBlock.Parse("20000020 11223344\n\r" + "20000024 55667788"); CheatEngine.PatchMemory(cheatBlock); CheatEngine.PatchMemory(CheatBlock.Parse("50000020 00000008\n\r" + "00000030 00000000")); var buffer = MockMemoryEditor.Read(0x00000030, 0x08); IsCheatApplied(cheatBlock.Cheats[0].Data, buffer); }
public void _16BitCondition() { CheatEngine.PatchMemory(CheatBlock.Parse("20000020 00001111")); var cheatBlock = CheatBlock.Parse("D0000020 00001111\n\r" + "20000024 55667788" + "20000028 11223344"); CheatEngine.PatchMemory(cheatBlock); var buffer = MockMemoryEditor.Read(0x00000024, 0x04); IsCheatApplied(cheatBlock.Cheats[1].Data, buffer); buffer = MockMemoryEditor.Read(0x00000028, 0x04); IsCheatApplied(cheatBlock.Cheats[2].Data, buffer); }