feat: automatically use a namespace of already installed app when updating/repairing

This commit is contained in:
Paweł Lidwin 2025-05-27 22:11:57 +02:00
parent e5d68315c3
commit fe3de308e7
No known key found for this signature in database
GPG key ID: C6EDF064F9FEE1E1

View file

@ -822,6 +822,8 @@ class LegendaryCLI:
args.app_name = self._resolve_aliases(args.app_name)
if self.core.is_installed(args.app_name):
igame = self.core.get_installed_game(args.app_name)
if not args.namespace:
args.namespace = igame.namespace
args.platform = igame.platform
if igame.needs_verification and not args.repair_mode:
logger.info('Game needs to be verified before updating, switching to repair mode...')