mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Fall back to default wine prefix location
This and the previous commit fix #41
This commit is contained in:
parent
5e061d6946
commit
e710bb893f
|
@ -433,9 +433,11 @@ class LegendaryCore:
|
|||
proton_pfx = self.lgd.config.get(f'{app_name}.env', 'STEAM_COMPAT_DATA_PATH', fallback=None)
|
||||
if proton_pfx:
|
||||
wine_pfx = f'{proton_pfx}/pfx'
|
||||
if not wine_pfx:
|
||||
wine_pfx = os.path.expanduser('~/.wine')
|
||||
|
||||
# if we have a prefix, read the `user.reg` file and get the proper paths.
|
||||
if wine_pfx:
|
||||
if os.path.isdir(wine_pfx):
|
||||
wine_reg = read_registry(wine_pfx)
|
||||
wine_folders = get_shell_folders(wine_reg, wine_pfx)
|
||||
# path_vars['{userprofile}'] = user_path
|
||||
|
|
Loading…
Reference in a new issue