From 60a504edde6c2465b87e889a2822dfd7d625e4c1 Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 1 Jun 2022 09:40:25 +0200 Subject: [PATCH] [core] Add warning if 2K Launcher is the launch executable --- legendary/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index 9d88ca5..fa54ffb 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -1522,6 +1522,11 @@ class LegendaryCore: 'installation via Uplay running in WINE (e.g. using Lutris) is recommended. ' 'Use "legendary activate --uplay" and follow the instructions.') + # Detect 2K launcher, warn about it + if '2klauncher' in install.executable.lower(): + results.warnings.add('This game uses the 2K Launcher which is does not work with Legendary. ' + 'See the Legendary or EpicLinux Wiki for workarounds (e.g. exe override)') + return results def get_default_install_dir(self, platform='Windows'):