MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / IdempotentWrite8

Method IdempotentWrite8

common/MemoryInterface.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65bool MemoryInterface::IdempotentWrite8(u32 address, u8 value)
66{
67 bool valid;
68 u8 existing_value = Read8(address, &valid);
69 if (!valid || existing_value == value)
70 return valid;
71
72 return Write8(address, value);
73}
74
75bool MemoryInterface::IdempotentWrite16(u32 address, u16 value)
76{

Callers 3

writeCheatMethod · 0.80
handle_extended_tMethod · 0.80
ApplyPatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected