Browse files

Implement Xbox DVR disabling

  • Loading branch information...
molecul authored and Ruined1 committed Feb 1, 2019
1 parent 30d5f5b commit c456bd4ba6a5a3a733ee30b5207413fd86ab7bed
Showing with 32 additions and 0 deletions.
  1. +8 −0
  2. +7 −0
  3. +17 −0
@@ -91,6 +91,14 @@ Runs `C:\Windows\SysWOW64\OneDriveSetup.exe /uninstall` (64 bit) or
Also disables registry entries that keep the OneDrive Icon pinned to your Windows Explorer list:
![OneDrive Example Image](

#### Xbox DVR

* Disable: Set the `GameDVR_Enabled` registry key for both services to `0` (Disabled) Located at `HKEY_CURRENT_USER\System\GameConfigStore`
* Disable: Set the `AllowGameDVR` registry key for both services to `0` (Disabled) Located at `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR`

This action requires reboot computer for completely applying.

## Delete Services vs Disable Services?

Selecting "Disable" will simply stop the services from being able to run.
@@ -148,6 +148,10 @@ def __init__(self, parent):
self.onedrive_check = wx.CheckBox(self, label="Uninstall OneDrive")
self.onedrive_check.SetToolTip("Uninstalls OneDrive from your computer and removes it from Explorer.")

# Xbox DVR checkbox
self.dvr_check = wx.CheckBox(self, label="Disable Xbox DVR")
self.dvr_check.SetToolTip("Disable Xbox DVR feature to increase FPS in games")

self.service_rad = wx.RadioBox(self, label="Service Method", choices=("Disable", "Delete"))
self.service_rad.SetItemToolTip(item=0, text="Simply disables the services. This can be undone.")
self.service_rad.SetItemToolTip(item=1, text="Deletes the services completely. This can't be undone.")
@@ -245,6 +249,7 @@ def __init__(self, parent):
check_sizer.Add(self.defender_check, 0, wx.ALL, 1)
check_sizer.Add(self.wifisense_check, 0, wx.ALL, 1)
check_sizer.Add(self.onedrive_check, 0, wx.ALL, 1)
check_sizer.Add(self.dvr_check, 0, wx.ALL, 1)

#self.Bind(wx.EVT_CHECKBOX, handler=self.select_all_apps, source=select_all_check)
self.Bind(wx.EVT_CHECKBOX, handler=self.ip_warn, source=self.ip_check)
@@ -316,6 +321,8 @@ def go(self, event):
if self.onedrive_check.IsChecked():
if self.dvr_check.IsChecked():"Done. It's recommended that you reboot as soon as possible for the full effect.")"If you feel something didn't work properly, please press the 'Report an issue'"
" button and follow the directions"))
@@ -354,3 +354,20 @@ def subprocess_handler(cmd):
#"powershell -EncodedCommand {0}".format(encodedcommand), shell=True)
# except (WindowsError, IOError):
# print "App management: Could not re-install all apps"

def dvr(undo):
game_dvr_enabled = allow_game_dvr = 0
action = "disabled"
if undo:
game_dvr_enabled = allow_game_dvr = 1
action = "enabled"

dvr_keys = {'GameDVR_Enabled': [winreg.HKEY_CURRENT_USER,
'GameDVR_Enabled', winreg.REG_DWORD, game_dvr_enabled],
'AllowGameDVR': [winreg.HKEY_LOCAL_MACHINE,
'AllowGameDVR', winreg.REG_DWORD, allow_game_dvr]}

set_registry(dvr_keys)"Xbox DVR: successfully {action}".format(action=action))

0 comments on commit c456bd4

Please sign in to comment.