Browse Source

Disable Nahimic code injection.

(cherry picked from commit 8bb3e5360ed21ae89d53cdc3fb1c0dbc756262bb)
bruvzg 10 months ago
parent
commit
ff5ff386c5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/windows/os_windows.cpp

+ 1 - 0
platform/windows/os_windows.cpp

@@ -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