novidia: add nv check so plugin can be enabled by default

This commit is contained in:
somewhatlurker
2020-11-20 12:56:34 +11:00
parent 5a6cece1a6
commit f2510ed6b1
5 changed files with 23 additions and 10 deletions
+6 -7
View File
@@ -1,15 +1,14 @@
/*
Simple header for detecting Nvidia GPU models
*/
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <string>
#include <stdio.h>
#pragma comment(lib, "advapi32")
namespace GPUModel
{
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <string>
#include <stdio.h>
#pragma comment(lib, "advapi32")
std::wstring ExePath() {
WCHAR buffer[MAX_PATH];
GetModuleFileNameW(NULL, buffer, MAX_PATH);