Skip to content

Commit

Permalink
Continue Moving Checks
Browse files Browse the repository at this point in the history
Required for #106
  • Loading branch information
rcmaehl committed Jun 29, 2021
1 parent e911acc commit b588e74
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 0 additions & 2 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ Func Main()
GUICtrlSetFont(-1, 12 * _GDIPlus_GraphicsGetDPIRatio()[0], $FW_SEMIBOLD)
Next

$hFile = _TempFile()
$hDXFile = _TempFile(@TempDir, "dxdiag")
Run("dxdiag /whql:off /t " & $hDXFile)

Expand Down Expand Up @@ -529,7 +528,6 @@ Func Main()
GUICtrlSetData($hCheck[10][2], _GetTPMInfo(0) & " " & _GetTPMInfo(1) & " " & Number(StringSplit(_GetTPMInfo(2), ", ", $STR_NOCOUNT)[0]))
EndSelect

FileDelete($hFile)
GUISetState(@SW_SHOW, $hGUI)

While 1
Expand Down
21 changes: 18 additions & 3 deletions includes/_Checks.au3
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,26 @@ Func _CPUNameCheck($sCPU)
EndSelect
EndFunc

Func _CPUCores()
Func _CPUCoresCheck()
If _GetCPUInfo(0) >= 2 Or _GetCPUInfo(1) >= 2 Then
Return True
Else
GUICtrlSetData($hCheck[3][0], "X")
GUICtrlSetBkColor($hCheck[3][0], 0xFA113D)
Return False
EndIf
EndFunc

Func _CPUSpeedCheck()
If _GetCPUInfo(3) >= 1000 Then
Return True
Else
Return False
EndIf
EndFunc

Func _StartDirectXCheck()
Local $aReturn[2]
$hDXFile = _TempFile(@TempDir, "dxdiag")
$aReturn[0] = $hDXFile
$aReturn[1] = Run("dxdiag /whql:off /t " & $hDXFile)
Return $aReturn
EndFunc

0 comments on commit b588e74

Please sign in to comment.