diff --git a/drivers.json b/drivers.json index 7f1b292..7bfcbbc 100644 --- a/drivers.json +++ b/drivers.json @@ -1686,6 +1686,15 @@ "patch64_url": "ws2016_x64/quadro_451.48/nvencodeapi64.1337", "patch32_url": "ws2016_x64/quadro_451.48/nvencodeapi.1337", "driver_url": "https://international.download.nvidia.com/Windows/Quadro_Certified/451.48/451.48-quadro-winserv-2016-2019-64bit-international-whql.exe" + }, + { + "os": "win10", + "product": "GeForce", + "version": "451.52", + "variant": "", + "patch64_url": "win10_x64/451.52/nvencodeapi64.1337", + "patch32_url": "win10_x64/451.52/nvencodeapi.1337", + "driver_url": "" } ] } diff --git a/win/README.md b/win/README.md index 0dc09ca..3c79b07 100644 --- a/win/README.md +++ b/win/README.md @@ -1,7 +1,7 @@ NVENC and NvFBC patches for Windows Nvidia drivers ================================================== -![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-451.48-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-451.48-blue.svg) +![GitHub last commit](https://img.shields.io/github/last-commit/keylase/nvidia-patch.svg) ![Latest GeForce version](https://img.shields.io/badge/latest%20GeForce%20version-451.52-brightgreen.svg) ![Latest Quadro version](https://img.shields.io/badge/latest%20Quadro%20version-451.48-blue.svg) --- @@ -45,7 +45,7 @@ Requirements: 5. Apply x86 library patch to corresponding file in `%WINDIR%\SysWOW64\` in the same way as previous one. - *If patching fails, close all applications using nvencodeapi.dll, such as OBS Studio, Plex or Discord.* -**Example:** for 64bit Windows 10 running driver version 451.48, use `win10_x64/451.48/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/451.48/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. +**Example:** for 64bit Windows 10 running driver version 451.52, use `win10_x64/451.52/nvencodeapi64.1337` against `C:\WINDOWS\system32\nvencodeapi64.dll` **and** `win10_x64/451.52/nvencodeapi.1337` against `C:\WINDOWS\SysWOW64\nvencodeapi.dll`. If you experience issues with streaming software based on Nvidia streaming facilities (Nvidia Shield TV, Moonlight), you also have to import few registry values in order to workaround binary signature mismatch. See [**skip\_sig\_check** (clickable)](skip_sig_check) directory for instructions. @@ -118,6 +118,7 @@ Credits to [TroubleChute channel](https://www.youtube.com/channel/UCkih2oVTbXPEp | GeForce | 446.14 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/446.14/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/446.14/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/446.14/446.14-desktop-win10-64bit-international-whql.exe) | | GeForce | 451.48 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.48/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.48/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.48/451.48-desktop-win10-64bit-international-whql.exe) | | GeForce | 451.48 Studio Driver | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_451.48/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/nsd_451.48/nvencodeapi.1337) | [Driver link](https://international.download.nvidia.com/Windows/451.48/451.48-desktop-win10-64bit-international-nsd-whql.exe) | +| GeForce | 451.52 | [x64 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.52/nvencodeapi64.1337) | [x86 library patch](https://raw.githubusercontent.com/keylase/nvidia-patch/master/win/win10_x64/451.52/nvencodeapi.1337) | | | Product series | Version | x64 library patch | x86 library patch | Driver link | diff --git a/win/tools/autopatch/autopatch.py b/win/tools/autopatch/autopatch.py index b1dae28..58aa6a6 100755 --- a/win/tools/autopatch/autopatch.py +++ b/win/tools/autopatch/autopatch.py @@ -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) diff --git a/win/win10_x64/451.52/nvencodeapi.1337 b/win/win10_x64/451.52/nvencodeapi.1337 new file mode 100644 index 0000000..d889e25 --- /dev/null +++ b/win/win10_x64/451.52/nvencodeapi.1337 @@ -0,0 +1,6 @@ +>nvencodeapi.dll +000000000002B0F6:89->33 +000000000002B0F7:45->C0 +000000000002B0F8:08->89 +000000000002B0F9:85->45 +000000000002B0FA:C0->08 \ No newline at end of file diff --git a/win/win10_x64/451.52/nvencodeapi64.1337 b/win/win10_x64/451.52/nvencodeapi64.1337 new file mode 100644 index 0000000..d3d3885 --- /dev/null +++ b/win/win10_x64/451.52/nvencodeapi64.1337 @@ -0,0 +1,5 @@ +>nvencodeapi64.dll +000000000002FB3A:8B->33 +000000000002FB3B:F0->C0 +000000000002FB3C:85->8B +000000000002FB3D:C0->F0 \ No newline at end of file