1
0
Fork 0
mirror of synced 2024-06-23 08:40:45 +12:00

Downloads: Add skip_dlcs and with_dlcs arguments.

This commit is contained in:
loathingKernel 2022-08-08 17:25:50 +03:00
parent 3ee789a695
commit e97e9fe841
3 changed files with 5 additions and 1 deletions

View file

@ -99,7 +99,7 @@ class DownloadThread(QThread):
self._handle_postinstall(postinstall, self.item.download.igame)
dlcs = self.core.get_dlc_for_game(self.item.download.igame.app_name)
if dlcs:
if dlcs and not self.item.options.skip_dlcs:
for dlc in dlcs:
_exit_status.dlcs.append(
{"app_name": dlc.app_name, "app_title": dlc.app_title, "app_version": dlc.app_version}

View file

@ -76,6 +76,8 @@ class LgndrInstallGameArgs:
reset_sdl: bool = False
skip_sdl: bool = False
disable_https: bool = False
skip_dlcs: bool = False
with_dlcs: bool = False
yes: bool = True
# Rare: Extra arguments
indirect_status: LgndrIndirectStatus = LgndrIndirectStatus()

View file

@ -23,6 +23,8 @@ class InstallOptionsModel:
repair_and_update: bool = False
no_install: bool = False
ignore_space: bool = False
skip_dlcs: bool = False
with_dlcs: bool = False
# Rare's internal arguments
# FIXME: Do we really need all of these?
create_shortcut: bool = True