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

Method IdempotentWrite32

common/MemoryInterface.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool MemoryInterface::IdempotentWrite32(u32 address, u32 value)
86{
87 bool valid;
88 u32 existing_value = Read32(address, &valid);
89 if (!valid || existing_value == value)
90 return valid;
91
92 return Write32(address, value);
93}
94
95bool MemoryInterface::IdempotentWrite64(u32 address, u64 value)
96{

Callers 3

writeCheatMethod · 0.80
handle_extended_tMethod · 0.80
ApplyPatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected