From e4e4a0b7df681f345997b3550a5e26c24d0cc63a Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 23 May 2020 18:35:58 +0200 Subject: [PATCH] [core] Add "no_wine" config option --- legendary/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index f850635..515e30b 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -262,7 +262,9 @@ 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) - params.append(wine_bin) + + if not self.lgd.config.getboolean(app_name, 'no_wine', fallback=False): + params.append(wine_bin) params.append(game_exe)