[core] Add "no_wine" config option

This commit is contained in:
derrod 2020-05-23 18:35:58 +02:00
parent c52cd09eb7
commit e4e4a0b7df

View file

@ -262,6 +262,8 @@ class LegendaryCore:
wine_bin = self.lgd.config.get('default', 'wine_executable', fallback='wine')
# check if there's a game specific override
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(game_exe)