[core] Add warning if 2K Launcher is the launch executable

This commit is contained in:
derrod 2022-06-01 09:40:25 +02:00
parent 2b71b50d5c
commit 60a504edde

View file

@ -1522,6 +1522,11 @@ class LegendaryCore:
'installation via Uplay running in WINE (e.g. using Lutris) is recommended. ' 'installation via Uplay running in WINE (e.g. using Lutris) is recommended. '
'Use "legendary activate --uplay" and follow the instructions.') '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 return results
def get_default_install_dir(self, platform='Windows'): def get_default_install_dir(self, platform='Windows'):