Coverage for lutris.runners.gens : 71%

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
""" Runner for Sega Genesis games """
"""Runner for Sega Genesis games""" """Constructor""" 'option': 'rom', 'type': 'file', 'label': 'Rom File' }] { 'option': 'fullscreen', 'type': 'bool', 'label': 'Fullscreen' }, { 'option': 'quickexit', 'type': 'bool', 'label': 'Exit emulator with Esc' } ] else: self.rom = settings['game']['rom']
"""Downloads deb package and installs it""" dialog = DownloadDialog(package, dest) stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
""" Run the game """ plugins_dir = os.path.join(os.path.expanduser('~'), '.gens/plugins') if not os.path.exists(plugins_dir): os.makedirs(plugins_dir) if not self.is_installed(): return {'error': 'RUNNER_NOT_INSTALLED', 'runner': self.__class__.__name__} if not os.path.exists(self.rom): return {'error': 'FILE_NOT_FOUND', 'file': self.rom} arguments = ["--game \"%s\"" % self.rom] command = [self.executable] + arguments return {"command": command} |