From 89fe49aa4d9841411af434b8d9935597565bbad8 Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Apr 2020 06:20:25 +0200 Subject: [PATCH] [core] Add warning for BattlEye anticheat Closes #8 --- legendary/core.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index 0dfd122..58e0c18 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -428,9 +428,13 @@ class LegendaryCore: # if on linux, check for eac in the files if os.name != 'nt': for f in analysis.manifest_comparison.added: - if 'easyanticheat' in f.lower(): + flower = f.lower() + if 'easyanticheat' in flower: results.warnings.append('(Linux) The game uses EasyAntiCheat and may not run on linux') - break + elif 'beclient' in flower: + results.warnings.append('(Linux) The game uses BattlEye and may not run on linux') + elif 'beclient' in flower: + results.warnings.append('(Linux) The game uses BattlEye and may not run on linux') if install.requires_ot: results.warnings.append('This game requires an ownership verification token and likely uses Denuvo DRM.')