mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 06:43:49 +00:00
Require to acknowledge Anti-Cheat impact on PowerControl
This commit is contained in:
parent
862bdd2dd3
commit
9c0a326d48
3 changed files with 56 additions and 5 deletions
|
|
@ -252,6 +252,13 @@ namespace PowerControl
|
|||
ActiveOption = "?",
|
||||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
if (!Settings.Default.AckAntiCheat(
|
||||
Controller.TitleWithVersion,
|
||||
"TDP",
|
||||
"Changing TDP requires kernel access for a short period. Leave the game if it uses anti-cheat protection.")
|
||||
)
|
||||
return null;
|
||||
|
||||
uint mW = uint.Parse(selected.ToString().Replace("W", "")) * 1000;
|
||||
|
||||
if (VangoghGPU.IsSupported)
|
||||
|
|
@ -301,6 +308,13 @@ namespace PowerControl
|
|||
ResetValue = () => { return "Default"; },
|
||||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
if (!Settings.Default.AckAntiCheat(
|
||||
Controller.TitleWithVersion,
|
||||
"GPU",
|
||||
"Changing GPU frequency requires kernel access for a short period. Leave the game if it uses anti-cheat protection.")
|
||||
)
|
||||
return null;
|
||||
|
||||
return Instance.WithGlobalMutex<object>(200, () =>
|
||||
{
|
||||
using (var sd = VangoghGPU.Open())
|
||||
|
|
@ -330,6 +344,13 @@ namespace PowerControl
|
|||
ResetValue = () => { return "Default"; },
|
||||
ApplyValue = delegate(object selected)
|
||||
{
|
||||
if (!Settings.Default.AckAntiCheat(
|
||||
Controller.TitleWithVersion,
|
||||
"CPU",
|
||||
"Changing GPU frequency requires kernel access for a short period. Leave the game if it uses anti-cheat protection.")
|
||||
)
|
||||
return null;
|
||||
|
||||
return Instance.WithGlobalMutex<object>(200, () =>
|
||||
{
|
||||
using (var sd = VangoghGPU.Open())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue