mirror of
https://github.com/keylase/nvidia-patch.git
synced 2024-11-09 19:48:20 +00:00
fix for changed compression on nvenc dlls in installer archives
This commit is contained in:
parent
699bbf408a
commit
b368b4ea09
@ -33,8 +33,8 @@ def parse_args():
|
|||||||
parser.add_argument("-T", "--target",
|
parser.add_argument("-T", "--target",
|
||||||
nargs="+",
|
nargs="+",
|
||||||
default=[
|
default=[
|
||||||
"Display.Driver/nvencodeapi64.dl_",
|
"Display.Driver/nvencodeapi64.dll",
|
||||||
"Display.Driver/nvencodeapi.dl_",
|
"Display.Driver/nvencodeapi.dll",
|
||||||
],
|
],
|
||||||
help="target location(s) in archive")
|
help="target location(s) in archive")
|
||||||
parser.add_argument("-N", "--target-name",
|
parser.add_argument("-N", "--target-name",
|
||||||
@ -156,7 +156,8 @@ def make_patch(archive, *,
|
|||||||
tmpdir,
|
tmpdir,
|
||||||
arch_tgt,
|
arch_tgt,
|
||||||
sevenzip=sevenzip) as tgt:
|
sevenzip=sevenzip) as tgt:
|
||||||
f = expand(tgt, sevenzip=sevenzip)
|
with open(tgt, 'rb') as fo:
|
||||||
|
f = fo.read()
|
||||||
offset = f.find(search)
|
offset = f.find(search)
|
||||||
if offset == -1:
|
if offset == -1:
|
||||||
raise PatternNotFoundException("Pattern not found.")
|
raise PatternNotFoundException("Pattern not found.")
|
||||||
|
Loading…
Reference in New Issue
Block a user