Skip to content

Commit 21849fc

Browse files
committed
v1.4.5
- Added extra info to the crash log exporter in the settings tab. - Added an easy anti-cheat detection system, which disables dll injection if detected. - Added a new setting "prevent injection if easy anti-cheat is detected". This setting is enabled by default, use at your own risk if you disable it. - Removed being able to inject when out of date out of concerns of possible future bans with easy anti-cheat.
1 parent 0e05fd2 commit 21849fc

11 files changed

Lines changed: 260 additions & 135 deletions

File tree

Controls/CRStatus.cs

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public enum StatusViews : byte
1414

1515
public enum StatusTypes : byte
1616
{
17-
Process_Idle,
1817
Process_Loading,
18+
Process_Idle,
1919
Process_Running,
2020
Process_Injecting,
2121
Process_Manual,
@@ -27,7 +27,7 @@ public enum StatusTypes : byte
2727
Version_Launcher,
2828
Version_Both,
2929
Version_Safe,
30-
Version_Unsafe,
30+
Version_Unsafe
3131
}
3232

3333
public partial class CRStatus : UserControl
@@ -272,70 +272,90 @@ private void UpdateTheme()
272272
Invalidate();
273273
}
274274

275-
private void FormatType()
275+
public void FormatType()
276276
{
277+
bool antiCheated = LocalStorage.DetectedAntiCheat();
278+
bool shouldPrevent = (antiCheated && Configuration.ShouldPreventInjection());
279+
string newTitle = "";
280+
277281
switch (DisplayType)
278282
{
279-
case StatusTypes.Process_Idle:
280-
TitleLbl.Text = "Rocket League Is Not Running";
281-
DescriptionLbl.Text = "Waiting for the user to launch Rocket League.";
282-
break;
283283
case StatusTypes.Process_Loading:
284-
TitleLbl.Text = "Loading";
284+
newTitle = "Loading";
285285
DescriptionLbl.Text = "Loading...";
286286
break;
287+
case StatusTypes.Process_Idle:
288+
newTitle = "Rocket League Is Not Running";
289+
DescriptionLbl.Text = (shouldPrevent ? "Preventing injection for your own safety!" : "Waiting for the user to launch Rocket League.");
290+
break;
287291
case StatusTypes.Process_Running:
288-
TitleLbl.Text = "Rocket League Is Running";
292+
newTitle = "Rocket League Is Running";
289293
break;
290294
case StatusTypes.Process_Injecting:
291-
TitleLbl.Text = "Rocket League Is Running";
292-
DescriptionLbl.Text = "Process found, attempting to inject module...";
295+
newTitle = "Rocket League Is Running";
296+
DescriptionLbl.Text = (shouldPrevent ? "Preventing injection for your own safety!" : "Process found, attempting to inject module...");
293297
break;
294298
case StatusTypes.Process_Manual:
295-
TitleLbl.Text = "Rocket League Is Running";
296-
DescriptionLbl.Text = "Process found, ready for manual injection!";
299+
newTitle = "Rocket League Is Running";
300+
DescriptionLbl.Text = (shouldPrevent ? "Preventing injection for your own safety!" : "Process found, ready for manual injection!");
297301
break;
298302
case StatusTypes.Process_Outdated:
299-
TitleLbl.Text = "Rocket League Is Running";
303+
newTitle = "Rocket League Is Running";
300304
DescriptionLbl.Text = "Version mismatch, preventing injection!";
301305
break;
302306
case StatusTypes.Version_Idle:
303-
TitleLbl.Text = "Waiting";
307+
newTitle = "Waiting";
304308
DescriptionLbl.Text = "Automatically checking for updates disabled.";
309+
antiCheated = false; // Process and version status controls use this same class, we don't want to use this for the version one.
305310
break;
306311
case StatusTypes.Version_Checking:
307-
TitleLbl.Text = "Checking for Updates";
312+
newTitle = "Checking for Updates";
308313
DescriptionLbl.Text = "Waiting for response...";
314+
antiCheated = false;
309315
break;
310316
case StatusTypes.Version_Downloading:
311-
TitleLbl.Text = "Update in Progress";
317+
newTitle = "Update in Progress";
312318
DescriptionLbl.Text = "Downloading and installing...";
319+
antiCheated = false;
313320
break;
314321
case StatusTypes.Version_Module:
315-
TitleLbl.Text = "Module Out of Date";
322+
newTitle = "Module Out of Date";
316323
DescriptionLbl.Text = "Your module version is out of date!";
324+
antiCheated = false;
317325
break;
318326
case StatusTypes.Version_Launcher:
319-
TitleLbl.Text = "Launcher Out of Date";
327+
newTitle = "Launcher Out of Date";
320328
DescriptionLbl.Text = "Your launcher version is out of date!";
329+
antiCheated = false;
321330
break;
322331
case StatusTypes.Version_Both:
323-
TitleLbl.Text = "Both Out of Date";
332+
newTitle = "Both Out of Date";
324333
DescriptionLbl.Text = "Your launcher and module are out of date!";
334+
antiCheated = false;
325335
break;
326336
case StatusTypes.Version_Safe:
327-
TitleLbl.Text = "Version up to Date";
337+
newTitle = "Version up to Date";
328338
DescriptionLbl.Text = "You're running on the latest release!";
339+
antiCheated = false;
329340
break;
330341
case StatusTypes.Version_Unsafe:
331-
TitleLbl.Text = "Incompatible Version";
342+
newTitle = "Incompatible Version";
332343
DescriptionLbl.Text = "Please wait for a new version to be released!";
344+
antiCheated = false;
333345
break;
334346
default:
335-
TitleLbl.Text = "Loading";
347+
newTitle = "Loading";
336348
DescriptionLbl.Text = "Loading...";
349+
antiCheated = false;
337350
break;
338351
}
352+
353+
if (antiCheated)
354+
{
355+
newTitle = "Easy Anti-Cheat Detected";
356+
}
357+
358+
TitleLbl.Text = newTitle;
339359
}
340360

341361
private void FormatResult()

Forms/MainFrm.Designer.cs

Lines changed: 66 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)