Coverage for lutris.runners.dosbox : 55%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding:Utf-8 -*-
logger.debug("Running dosbox with config %s" % config_file) subprocess.Popen("dosbox -conf %s" % config_file, shell=True, stdout=subprocess.PIPE).communicate()
# pylint: disable=C0103 """Runner for MS Dos games""" """Constructor""" { "option": "main_file", "type": "file", "label": "EXE File" }, { "option": "config_file", "type": "file", "label": "Configuration file" } ]
""" Run the game """ logger.debug(self.settings) self.exe = self.settings["game"]["main_file"] self.game_path = os.path.dirname(self.exe) if not os.path.exists(self.exe): return {'error': "FILE_NOT_FOUND", 'file': self.exe} if self.exe.endswith(".conf"): exe = ["-conf", self.exe] else: exe = [self.exe] if "config_file" in self.settings["game"]: params = ["-conf", self.settings["game"]["config_file"]] else: params = [] return {'command': [self.executable] + params + exe} |