mirror of
https://github.com/keylase/nvidia-patch
synced 2024-10-30 09:20:57 +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",
|
||||
nargs="+",
|
||||
default=[
|
||||
"Display.Driver/nvencodeapi64.dl_",
|
||||
"Display.Driver/nvencodeapi.dl_",
|
||||
"Display.Driver/nvencodeapi64.dll",
|
||||
"Display.Driver/nvencodeapi.dll",
|
||||
],
|
||||
help="target location(s) in archive")
|
||||
parser.add_argument("-N", "--target-name",
|
||||
@ -156,7 +156,8 @@ def make_patch(archive, *,
|
||||
tmpdir,
|
||||
arch_tgt,
|
||||
sevenzip=sevenzip) as tgt:
|
||||
f = expand(tgt, sevenzip=sevenzip)
|
||||
with open(tgt, 'rb') as fo:
|
||||
f = fo.read()
|
||||
offset = f.find(search)
|
||||
if offset == -1:
|
||||
raise PatternNotFoundException("Pattern not found.")
|
||||
|
Loading…
Reference in New Issue
Block a user