mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Check and save path specified with --egl-manifest-path
This commit is contained in:
parent
92c6fd8601
commit
50d6eb02fa
|
@ -850,7 +850,11 @@ class LegendaryCLI:
|
||||||
self.core.egl.programdata_path = egl_path
|
self.core.egl.programdata_path = egl_path
|
||||||
self.core.lgd.config.set('Legendary', 'egl_programdata', egl_path)
|
self.core.lgd.config.set('Legendary', 'egl_programdata', egl_path)
|
||||||
else:
|
else:
|
||||||
|
if not os.path.exists(args.egl_manifest_path):
|
||||||
|
logger.fatal('Path specified via --egl-manifest-path does not exist')
|
||||||
|
exit(1)
|
||||||
self.core.egl.programdata_path = args.egl_manifest_path
|
self.core.egl.programdata_path = args.egl_manifest_path
|
||||||
|
self.core.lgd.config.set('Legendary', 'egl_programdata', args.egl_manifest_path)
|
||||||
|
|
||||||
logger.debug(f'Using EGL ProgramData path "{self.core.egl.programdata_path}"...')
|
logger.debug(f'Using EGL ProgramData path "{self.core.egl.programdata_path}"...')
|
||||||
logger.info('Reading EGL game manifests...')
|
logger.info('Reading EGL game manifests...')
|
||||||
|
|
Loading…
Reference in a new issue