MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / ApplyStatic

Method ApplyStatic

src/Utilities/Patch.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void Patch::ApplyStatic()
24{
25 void* buffer;
26 const int len = GetSection(PATCH_SECTION_NAME, &buffer);
27
28 for (int offset = 0; offset < len; offset += sizeof(Patch))
29 {
30 const auto pPatch = (Patch*)((DWORD)buffer + offset);
31 if (pPatch->offset == 0)
32 return;
33
34 pPatch->Apply();
35 }
36}
37
38void Patch::Apply()
39{

Callers

nothing calls this directly

Calls 2

GetSectionFunction · 0.85
ApplyMethod · 0.45

Tested by

no test coverage detected