From 2647fa49151b4010e688a346f2b3c756b94cd844 Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 10 Jun 2020 17:51:57 +0200 Subject: [PATCH] [core] Do not sync DLC to EGL --- legendary/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index 7ef679d..f22e381 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -275,7 +275,7 @@ class LegendaryCore: def get_installed_game(self, app_name) -> InstalledGame: igame = self._get_installed_game(app_name) - if igame and self.egl_sync_enabled and igame.egl_guid: + if igame and self.egl_sync_enabled and igame.egl_guid and not igame.is_dlc: self.egl_sync(app_name) return self._get_installed_game(app_name) else: @@ -810,7 +810,7 @@ class LegendaryCore: return os.path.expanduser(self.lgd.config.get('Legendary', 'install_dir', fallback='~/legendary')) def install_game(self, installed_game: InstalledGame) -> dict: - if self.egl_sync_enabled: + if self.egl_sync_enabled and not installed_game.is_dlc: if not installed_game.egl_guid: installed_game.egl_guid = str(uuid4()).replace('-', '').upper() prereq = self._install_game(installed_game)