From b87bfb469ff304fc487e8fc343859c29f4bfcb44 Mon Sep 17 00:00:00 2001 From: "Robert C. Maehl" Date: Wed, 30 Jun 2021 01:13:56 -0400 Subject: [PATCH] #265 Fixes #265 Fixes #58 --- WhyNotWin11.au3 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/WhyNotWin11.au3 b/WhyNotWin11.au3 index 56687316..96dba8b2 100644 --- a/WhyNotWin11.au3 +++ b/WhyNotWin11.au3 @@ -678,27 +678,27 @@ Func Main() Case Not ProcessExists("dxdiag.exe") And FileExists($hDXFile) $sDXFile = StringStripWS(StringStripCR(FileRead($hDXFile)), $STR_STRIPALL) Select - Case StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM" & Chr(160) & "3") ; Non-English Languages + Case StringInStr($sDXFile, "FeatureLevels:12") And StringInStr($sDXFile, "DriverModel:WDDM" & Chr(160) & "3") ; Non-English Languages ContinueCase - Case StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:3") ; Non-English Languages + Case StringInStr($sDXFile, "FeatureLevels:12) And StringInStr($sDXFile, "DriverModel:3") ; Non-English Languages ContinueCase - Case StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM3") + Case StringInStr($sDXFile, "FeatureLevels:12) And StringInStr($sDXFile, "DriverModel:WDDM3") GUICtrlSetData($hCheck[5][0], "OK") GUICtrlSetBkColor($hCheck[5][0], 0x4CC355) GUICtrlSetData($hCheck[5][2], "DirectX 12 && WDDM 3") - Case StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM" & Chr(160) & "2") ; Non-English Languages + Case StringInStr($sDXFile, "FeatureLevels:12) And StringInStr($sDXFile, "DriverModel:WDDM" & Chr(160) & "2") ; Non-English Languages ContinueCase - Case StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:2") ; Non-English Languages + Case StringInStr($sDXFile, "FeatureLevels:12) And StringInStr($sDXFile, "DriverModel:2") ; Non-English Languages ContinueCase - Case StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM2") + Case StringInStr($sDXFile, "FeatureLevels:12) And StringInStr($sDXFile, "DriverModel:WDDM2") GUICtrlSetData($hCheck[5][0], "OK") GUICtrlSetBkColor($hCheck[5][0], 0x4CC355) GUICtrlSetData($hCheck[5][2], "DirectX 12 && WDDM 2") - Case Not StringInStr($sDXFile, "DDIVersion:12") And StringInStr($sDXFile, "DriverModel:WDDM2") + Case Not StringInStr($sDXFile, "FeatureLevels:12) And StringInStr($sDXFile, "DriverModel:WDDM2") GUICtrlSetData($hCheck[5][0], "X") GUICtrlSetBkColor($hCheck[5][0], 0xFA113D) GUICtrlSetData($hCheck[5][2], _Translate($iMUI, "No DirectX 12, but WDDM2")) - Case StringInStr($sDXFile, "DDIVersion:12") And Not StringInStr($sDXFile, "DriverModel:WDDM2") + Case StringInStr($sDXFile, "FeatureLevels:12) And Not StringInStr($sDXFile, "DriverModel:WDDM2") GUICtrlSetData($hCheck[5][0], "X") GUICtrlSetBkColor($hCheck[5][0], 0xFA113D) GUICtrlSetData($hCheck[5][2], _Translate($iMUI, "DirectX 12, but no WDDM2"))