Support applying patches from terminal, closes #186

This commit is contained in:
vit9696 2019-11-03 16:15:03 +03:00
parent 4bee991c94
commit 31ccb2a054
4 changed files with 98 additions and 3 deletions

View file

@ -127,6 +127,10 @@ typedef size_t UINTN;
#define PATCH_MODE_HEADER 0
#define PATCH_MODE_BODY 1
// Patch from
#define PATCH_FROM_FILE 0
#define PATCH_FROM_ARG 1
// Patch types
#define PATCH_TYPE_OFFSET 'O'
#define PATCH_TYPE_PATTERN 'P'