From 6932344443f0dab24ce87dc6170832f2012e6644 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 12 Oct 2016 10:46:59 +0200 Subject: [PATCH] Implement stvkler's shit --- src/STDInclude.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/STDInclude.cpp b/src/STDInclude.cpp index 0c4c52fb..68e39c4b 100644 --- a/src/STDInclude.cpp +++ b/src/STDInclude.cpp @@ -67,11 +67,14 @@ Assert_Size(std::uint8_t, 1); // Ensure pointers are 4 bytes in size (32-bit) static_assert(sizeof(intptr_t) == 4 && sizeof(void*) == 4 && sizeof(size_t) == 4, "This doesn't seem to be a 32-bit environment!"); -// Disable telemetry data logging extern "C" { + // Disable telemetry data logging void __cdecl __vcrt_initialize_telemetry_provider() {} void __cdecl __telemetry_main_invoke_trigger() {} void __cdecl __telemetry_main_return_trigger() {} void __cdecl __vcrt_uninitialize_telemetry_provider() {} + + // Enable 'High Performance Graphics' + __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; };