Disable Nahimic code injection.

(cherry picked from commit 8bb3e5360e)
This commit is contained in:
bruvzg
2024-11-18 12:58:38 +02:00
committed by lawnjelly
parent 26e7fb2dc1
commit ff5ff386c5

View File

@ -58,6 +58,7 @@ static const WORD MAX_CONSOLE_LINES = 1500;
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
__declspec(dllexport) void NoHotPatch() {} // Disable Nahimic code injection.
}
// Workaround mingw-w64 < 4.0 bug