Change DivaGL detection method, fix non_nv_name

This commit is contained in:
nastys
2024-03-26 20:16:40 +01:00
parent 2c10f27ab0
commit b6fc62bbf1
5 changed files with 80 additions and 9 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ namespace GPUModel
//DWORD dwAttrib = GetFileAttributesW(L"amdgfxinfo64.dll");
//if (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY))
struct stat buffer; // for some reason winapi version wasn't working
if (stat("amdgfxinfo64.dll", &buffer) == 0);
if (stat("amdgfxinfo64.dll", &buffer) == 0)
{
non_nv_name = "AMD";
}