mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 06:43:49 +00:00
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:
parent
b977003efa
commit
9d9a9a4196
11 changed files with 259 additions and 90 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue