mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Fix overlay install path check on install
This commit is contained in:
parent
c7030c480e
commit
4a743dc1ca
|
@ -2034,8 +2034,8 @@ class LegendaryCLI:
|
||||||
install_path = os.path.normpath(igame.install_path)
|
install_path = os.path.normpath(igame.install_path)
|
||||||
reg_paths = query_registry_entries()
|
reg_paths = query_registry_entries()
|
||||||
if old_path := reg_paths["overlay_path"]:
|
if old_path := reg_paths["overlay_path"]:
|
||||||
if os.path.normpath(old_path) != args.path:
|
if os.path.normpath(old_path) != install_path:
|
||||||
logger.info(f'Updating overlay registry entries from "{old_path}" to "{args.path}"')
|
logger.info(f'Updating overlay registry entries from "{old_path}" to "{install_path}"')
|
||||||
remove_registry_entries()
|
remove_registry_entries()
|
||||||
add_registry_entries(install_path)
|
add_registry_entries(install_path)
|
||||||
logger.info('Done.')
|
logger.info('Done.')
|
||||||
|
|
Loading…
Reference in a new issue