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

Method IdempotentWrite16

common/MemoryInterface.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool MemoryInterface::IdempotentWrite16(u32 address, u16 value)
76{
77 bool valid;
78 u16 existing_value = Read16(address, &valid);
79 if (!valid || existing_value == value)
80 return valid;
81
82 return Write16(address, value);
83}
84
85bool MemoryInterface::IdempotentWrite32(u32 address, u32 value)
86{

Callers 3

writeCheatMethod · 0.80
handle_extended_tMethod · 0.80
ApplyPatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected