mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Add "no_wine" config option
This commit is contained in:
parent
c52cd09eb7
commit
e4e4a0b7df
|
@ -262,6 +262,8 @@ class LegendaryCore:
|
||||||
wine_bin = self.lgd.config.get('default', 'wine_executable', fallback='wine')
|
wine_bin = self.lgd.config.get('default', 'wine_executable', fallback='wine')
|
||||||
# check if there's a game specific override
|
# check if there's a game specific override
|
||||||
wine_bin = self.lgd.config.get(app_name, 'wine_executable', fallback=wine_bin)
|
wine_bin = self.lgd.config.get(app_name, 'wine_executable', fallback=wine_bin)
|
||||||
|
|
||||||
|
if not self.lgd.config.getboolean(app_name, 'no_wine', fallback=False):
|
||||||
params.append(wine_bin)
|
params.append(wine_bin)
|
||||||
|
|
||||||
params.append(game_exe)
|
params.append(game_exe)
|
||||||
|
|
Loading…
Reference in a new issue