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

Method PatchTableExecute

pcsx2/Patch.cpp:175–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175int Patch::PatchTableExecute(PatchGroup* group, const std::string_view lhs, const std::string_view rhs,
176 const std::span<const PatchTextTable>& Table)
177{
178 int i = 0;
179
180 while (Table[i].text)
181 {
182 if (lhs.compare(Table[i].text) == 0)
183 {
184 if (Table[i].func)
185 Table[i].func(group, lhs, rhs);
186 break;
187 }
188 i++;
189 }
190
191 return Table[i].code;
192}
193
194// This routine is for executing the commands of the ini file.
195void Patch::LoadPatchLine(PatchGroup* group, const std::string_view line)

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected