mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[cli] Improve Lutris EGS detection and ask user before using it
This commit is contained in:
parent
5dac4d51f8
commit
9231df9d44
|
@ -761,12 +761,20 @@ class LegendaryCLI:
|
||||||
if not self.core.egl.programdata_path:
|
if not self.core.egl.programdata_path:
|
||||||
if not args.egl_manifest_path:
|
if not args.egl_manifest_path:
|
||||||
# search default Lutris install path
|
# search default Lutris install path
|
||||||
egl_path = os.path.expanduser('~/Games/epic-games-store/drive_c/ProgramData'
|
lutris_data_path = os.path.expanduser('~/Games/epic-games-store/drive_c/ProgramData'
|
||||||
'/Epic/EpicGamesLauncher/Data/Manifests')
|
'/Epic/EpicGamesLauncher/Data')
|
||||||
if os.path.exists(egl_path):
|
egl_path = None
|
||||||
logger.info(f'Found Lutris EGL install at "{egl_path}"')
|
if os.path.exists(lutris_data_path):
|
||||||
else:
|
logger.info(f'Found Lutris EGL install at "{lutris_data_path}"')
|
||||||
print('EGL path not found, please manually provide the path to the WINEPREFIX it is installed in')
|
|
||||||
|
if get_boolean_choice('Do you want to use the Lutris install?'):
|
||||||
|
egl_path = os.path.join(lutris_data_path, 'Manifests')
|
||||||
|
if not os.path.exists(egl_path):
|
||||||
|
print('EGL Data path exists but Manifests directory is missing, creating...')
|
||||||
|
os.makedirs(egl_path)
|
||||||
|
|
||||||
|
if not egl_path:
|
||||||
|
print('EGL path not found, please manually provide the path to the WINE prefix it is installed in')
|
||||||
egl_path = input('Path [empty input to quit]: ').strip()
|
egl_path = input('Path [empty input to quit]: ').strip()
|
||||||
if not egl_path:
|
if not egl_path:
|
||||||
print('Empty input, quitting...')
|
print('Empty input, quitting...')
|
||||||
|
|
Loading…
Reference in a new issue