NVPatch
nvpatch is A simple command line utitly to patch existing x64 executables to include the export symbols NvOptimusEnablement and AmdPowerXpressRequestHighPerformance as required to enable the discreet GPU on some machines (mainly laptops)
— Github
Pre-requisites
- Install .NET 5.0
- Run
dotnet tool install -g Topten.nvpatch
in a terminal
Patch binary
Use this action to patch a binary file.