mirror of
https://github.com/keylase/nvidia-patch.git
synced 2025-08-20 05:13:14 -07:00
win: add driver 451.52 (WU driver)
This commit is contained in:
parent
11bb6ed67c
commit
280f2b40dc
5 changed files with 28 additions and 4 deletions
|
@ -71,7 +71,7 @@ def parse_args():
|
|||
parser.add_argument("-D", "--direct",
|
||||
action="store_true",
|
||||
help="supply patched library directly instead of "
|
||||
"installer file. Implies --stdout option.")
|
||||
"installer file")
|
||||
args = parser.parse_args()
|
||||
return args
|
||||
|
||||
|
@ -200,9 +200,12 @@ def patch_flow(installer_file, search, replacement, target, target_name, patch_n
|
|||
sevenzip=sevenzip,
|
||||
direct=direct)
|
||||
patch_content = format_patch(patch, target_name)
|
||||
if stdout or direct:
|
||||
if stdout:
|
||||
with open(sys.stdout.fileno(), mode='wb', closefd=False) as out:
|
||||
out.write(patch_content)
|
||||
elif direct:
|
||||
with open(patch_name, mode='wb') as out:
|
||||
out.write(patch_content)
|
||||
else:
|
||||
version, product_type = identify_driver(installer_file,
|
||||
sevenzip=sevenzip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue