Allow to disable usage of Kernel Drivers (to allow work with Anti-Cheat detection)

This allows to use all tools with Anti-Cheat detection.
This commit is contained in:
Kamil Trzciński 2022-11-26 20:09:30 +01:00
parent b977003efa
commit 9d9a9a4196
11 changed files with 259 additions and 90 deletions

View file

@ -433,6 +433,30 @@ namespace PowerControl
}
},
new Menu.MenuItemWithOptions()
{
Name = "OSD Kernel Drivers",
ApplyDelay = 500,
OptionsValues = delegate()
{
return Enum.GetValues<KernelDriversLoaded>().Select(item => (object)item).ToArray();
},
CurrentValue = delegate()
{
if (SharedData<OverlayModeSetting>.GetExistingValue(out var value))
return value.KernelDriversLoaded;
return null;
},
ApplyValue = delegate(object selected)
{
if (!SharedData<OverlayModeSetting>.GetExistingValue(out var value))
return null;
value.DesiredKernelDriversLoaded = (KernelDriversLoaded)selected;
if (!SharedData<OverlayModeSetting>.SetExistingValue(value))
return null;
return selected;
}
},
new Menu.MenuItemWithOptions()
{
Name = "FAN",
ApplyDelay = 500,