| 21 | } |
| 22 | |
| 23 | void 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 | |
| 38 | void Patch::Apply() |
| 39 | { |
nothing calls this directly
no test coverage detected