From 4a743dc1ca53e788b17ed8641688b87b4f1b5ac4 Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Dec 2021 17:51:35 +0100 Subject: [PATCH] [cli] Fix overlay install path check on install --- legendary/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index a8494b5..51c136a 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -2034,8 +2034,8 @@ class LegendaryCLI: install_path = os.path.normpath(igame.install_path) reg_paths = query_registry_entries() if old_path := reg_paths["overlay_path"]: - if os.path.normpath(old_path) != args.path: - logger.info(f'Updating overlay registry entries from "{old_path}" to "{args.path}"') + if os.path.normpath(old_path) != install_path: + logger.info(f'Updating overlay registry entries from "{old_path}" to "{install_path}"') remove_registry_entries() add_registry_entries(install_path) logger.info('Done.')