mirror of
https://github.com/derrod/legendary.git
synced 2025-07-07 11:10:33 +00:00
[core] Fix crash when game config section is missing
This commit is contained in:
parent
9867c5f492
commit
e3ad2d8de9
|
@ -254,7 +254,7 @@ class LegendaryCore:
|
||||||
|
|
||||||
params = []
|
params = []
|
||||||
|
|
||||||
if wrapper or (wrapper := self.lgd.config.get(app_name, 'wrapper')):
|
if wrapper or (wrapper := self.lgd.config.get(app_name, 'wrapper', fallback=None)):
|
||||||
params.extend(shlex.split(wrapper))
|
params.extend(shlex.split(wrapper))
|
||||||
|
|
||||||
if os.name != 'nt' and not disable_wine:
|
if os.name != 'nt' and not disable_wine:
|
||||||
|
|
Loading…
Reference in a new issue