mirror of
https://github.com/derrod/legendary.git
synced 2024-09-30 09:18:33 +13:00
[core] Add wine_prefix config option
This commit is contained in:
parent
a0329a73a9
commit
c216341467
1 changed files with 4 additions and 0 deletions
|
@ -371,6 +371,10 @@ class LegendaryCore:
|
||||||
|
|
||||||
if wine_pfx:
|
if wine_pfx:
|
||||||
env['WINEPREFIX'] = wine_pfx
|
env['WINEPREFIX'] = wine_pfx
|
||||||
|
elif 'WINEPREFIX' not in env:
|
||||||
|
# only use config variable if not already set in environment
|
||||||
|
if wine_pfx := self.lgd.config.get(app_name, 'wine_prefix', fallback=None):
|
||||||
|
env['WINEPREFIX'] = wine_pfx
|
||||||
|
|
||||||
return params, working_dir, env
|
return params, working_dir, env
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue