mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Do not sync DLC to EGL
This commit is contained in:
parent
4720b59d99
commit
2647fa4915
|
@ -275,7 +275,7 @@ class LegendaryCore:
|
||||||
|
|
||||||
def get_installed_game(self, app_name) -> InstalledGame:
|
def get_installed_game(self, app_name) -> InstalledGame:
|
||||||
igame = self._get_installed_game(app_name)
|
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)
|
self.egl_sync(app_name)
|
||||||
return self._get_installed_game(app_name)
|
return self._get_installed_game(app_name)
|
||||||
else:
|
else:
|
||||||
|
@ -810,7 +810,7 @@ class LegendaryCore:
|
||||||
return os.path.expanduser(self.lgd.config.get('Legendary', 'install_dir', fallback='~/legendary'))
|
return os.path.expanduser(self.lgd.config.get('Legendary', 'install_dir', fallback='~/legendary'))
|
||||||
|
|
||||||
def install_game(self, installed_game: InstalledGame) -> dict:
|
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:
|
if not installed_game.egl_guid:
|
||||||
installed_game.egl_guid = str(uuid4()).replace('-', '').upper()
|
installed_game.egl_guid = str(uuid4()).replace('-', '').upper()
|
||||||
prereq = self._install_game(installed_game)
|
prereq = self._install_game(installed_game)
|
||||||
|
|
Loading…
Reference in a new issue