add patch from @oysteinkrog for basic testing

This commit is contained in:
Vladislav Yarmak 2019-11-21 22:51:09 +02:00 committed by Vladislav Yarmak
parent 9c9d869f8e
commit 63affb9ed8
2 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,7 @@ def parse_args():
default=[
"Display.Driver/nvcuvid64.dl_",
"Display.Driver/nvcuvid32.dl_",
"Display.Driver/nvencodeapi64.dl_",
],
help="target location(s) in archive")
parser.add_argument("-N", "--target-name",
@ -41,6 +42,7 @@ def parse_args():
default=[
"nvcuvid.dll",
"nvcuvid.dll",
"nvencodeapi64.dll",
],
help="name(s) of installed target file. Used for patch "
"header")
@ -49,6 +51,7 @@ def parse_args():
default=[
"nvcuvid64.1337",
"nvcuvid32.1337",
"nvencodeapi64.1337",
],
help="relative filename(s) of generated patch(es)")
parser.add_argument("-S", "--search",
@ -56,6 +59,7 @@ def parse_args():
default=[
"FF909800000084C075",
"8B404CFFD084C075",
"8BF085C0750549892FEB21",
],
help="representation of search pattern(s) binary string")
parser.add_argument("-R", "--replacement",
@ -63,6 +67,7 @@ def parse_args():
default=[
"FF90980000000C0175",
"8B404CFFD00C0175",
"33C08BF0750549892FEB21",
],
help="representation of replacement(s) binary string")
parser.add_argument("-o", "--stdout",

View File

@ -0,0 +1,5 @@
>nvencodeapi64.dll
000000000002E43A:8B->33
000000000002E43B:F0->C0
000000000002E43C:85->8B
000000000002E43D:C0->F0