From a785c75bee99a2fc9d4e00a280293582e849960d Mon Sep 17 00:00:00 2001 From: Dipayan Biswas <108147735+d1payan@users.noreply.github.com> Date: Wed, 21 Sep 2022 19:29:58 +0530 Subject: [PATCH] Fixed GameDVR Code (#174) Registry values were not changing after applying GameDVR tweaks. Because all the registry tweaks were under if condition in the code. Modified that and now working properly. --- winutil.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 3b50ecdc..98c2e483 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -612,11 +612,13 @@ $WPFtweaksbutton.Add_Click({ If ( $WPFEssTweaksDVR.IsChecked -eq $true ) { If (!(Test-Path "HKCU:\System\GameConfigStore")) { - Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_DXGIHonorFSEWindowsCompatible" -Type Hex -Value 00000000 - Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_HonorUserFSEBehaviorMode" -Type Hex -Value 00000000 - Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_EFSEFeatureFlags" -Type Hex -Value 00000000 - Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type DWord -Value 00000000 + New-Item -Path "HKCU:\System\GameConfigStore" -Force } + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_DXGIHonorFSEWindowsCompatible" -Type DWord -Value 0 -Force + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_HonorUserFSEBehaviorMode" -Type DWord -Value 0 -Force + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_EFSEFeatureFlags" -Type DWord -Value 0 -Force + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type DWord -Value 0 -Force + $WPFEssTweaksDVR.IsChecked = $false } If ( $WPFEssTweaksHiber.IsChecked -eq $true ) {