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

Method IdempotentWrite

common/MemoryInterface.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123template <MemoryAccessType Value>
124bool MemoryInterface::IdempotentWrite(u32 address, Value value)
125{
126 bool valid;
127 Value existing_value = Read<Value>(address, &valid);
128 if (!valid || existing_value == value)
129 return valid;
130
131 return Write<Value>(address, value);
132}
133
134#define EXPLICITLY_INSTANTIATE_TEMPLATES(type) \
135 template type MemoryInterface::Read<type>(u32 addres, bool* valid); \

Callers 1

ApplyPatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected