Skip to content

Commit aa6c979

Browse files
committed
Show Top-Most Anti-Cheat ackonwledge
1 parent 99066eb commit aa6c979

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

FanControl/FanControlForm.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ private bool AckAntiCheat()
8282
if (Settings.Default.AckAntiCheat && Settings.Default.EnableExperimentalFeatures)
8383
return true;
8484

85+
Application.DoEvents();
86+
8587
var result = MessageBox.Show(
88+
new Form { TopMost = true },
8689
String.Join("\n",
8790
"WARNING!!!!",
8891
"",
@@ -93,7 +96,10 @@ private bool AckAntiCheat()
9396
"",
9497
"CLICK YES TO ACKNOWLEDGE?",
9598
"CLICK NO TO LEARN MORE."
96-
), Text, MessageBoxButtons.YesNo
99+
), Text,
100+
MessageBoxButtons.YesNo,
101+
MessageBoxIcon.Warning,
102+
MessageBoxDefaultButton.Button2
97103
);
98104

99105
if (result == DialogResult.Yes)

PerformanceOverlay/Controller.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ private bool AckAntiCheat()
168168
if (Settings.Default.AckAntiCheat && Settings.Default.EnableExperimentalFeatures)
169169
return true;
170170

171+
Application.DoEvents();
172+
171173
var result = MessageBox.Show(
174+
new Form { TopMost = true },
172175
String.Join("\n",
173176
"WARNING!!!!",
174177
"",
@@ -179,7 +182,10 @@ private bool AckAntiCheat()
179182
"",
180183
"CLICK YES TO ACKNOWLEDGE?",
181184
"CLICK NO TO LEARN MORE."
182-
), TitleWithVersion, MessageBoxButtons.YesNo
185+
), TitleWithVersion,
186+
MessageBoxButtons.YesNo,
187+
MessageBoxIcon.Warning,
188+
MessageBoxDefaultButton.Button2
183189
);
184190

185191
if (result == DialogResult.Yes)

PowerControl/Settings.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ public bool AckAntiCheat(String title, String name, String message)
5757
if (Get<bool>("AckAntiCheat" + name, false) && Settings.Default.EnableExperimentalFeatures)
5858
return true;
5959

60+
Application.DoEvents();
61+
6062
var result = MessageBox.Show(
63+
new Form { TopMost = true },
6164
String.Join("\n",
6265
"WARNING!!!!",
6366
"",
@@ -66,7 +69,10 @@ public bool AckAntiCheat(String title, String name, String message)
6669
"",
6770
"CLICK YES TO ACKNOWLEDGE?",
6871
"CLICK NO TO LEARN MORE."
69-
), title, MessageBoxButtons.YesNo
72+
), title,
73+
MessageBoxButtons.YesNo,
74+
MessageBoxIcon.Warning,
75+
MessageBoxDefaultButton.Button2
7076
);
7177

7278
if (result == DialogResult.Yes)

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
- Use `Sentry.io` for error tracking
2020
- Make `Updater.exe` to be able to update from `.zip` to `setup.exe`
2121
- Bug fixing to handle all known exceptions
22-
- Require to acknowledge when using function that might trigger `Anti-Cheat` protection
22+
- Require to acknowledge when using function that might trigger `Anti-Cheat` protection via top-most window

0 commit comments

Comments
 (0)