diff --git a/lutris/runners/winesteam.py b/lutris/runners/winesteam.py index 17dea0242..48d212867 100644 --- a/lutris/runners/winesteam.py +++ b/lutris/runners/winesteam.py @@ -89,7 +89,9 @@ class winesteam(wine): self.arguments = [] self.game_options = [ {'option': 'appid', 'type': 'string', 'label': 'appid'}, - {'option': 'args', 'type': 'string', 'label': 'arguments'} + {'option': 'args', 'type': 'string', 'label': 'arguments'}, + {'option': 'prefix', 'type': 'directory_chooser', + 'label': 'Prefix'} ] self.settings = settings @@ -179,6 +181,12 @@ class winesteam(wine): 'runner': self.__class__.__name__} self.prepare_launch() + + command = [] + prefix = self.settings['game'].get('prefix', "") + if os.path.exists(prefix): + command.append("WINEPREFIX=\"%s\" " % prefix) + command.append(self.launch_args) return { - 'command': self.launch_args + ['-applaunch', appid, self.args] + 'command': command + ['-applaunch', appid, self.args] }