Coverage for lutris.runners.atari800 : 56%

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 -*-
# pylint: disable=C0103 """ Runs Atari800 games """ "http://kent.dl.sourceforge.net/project/atari800/" "ROM/Original%20XL%20ROM/xf25.zip" ) "xlxe_rom": "06daac977823773a3eea3422fd26a703", "basic_rom": "0bac0c6a50104045d902df4503a4c30b", "osa_rom": "", "osb_rom": "a3e8d617c95d08031fe1b20d541434b2", "5200_rom": "" } { "option": "main_file", "type": "file", "label": "Rom File" } ] for resolution in get_resolutions()] screen_resolutions = []
{ "option": "bios_path", "type": "directory_chooser", "label": "Bios Path" }, { "option": "machine", "type": "one_choice", "choices": ( ("Emulate Atari 800", "atari"), ("Emulate Atari 800 XL", "xl"), ("Emulate Atari 320 XE (Compy Shop)", "320xe"), ("Emulate Atari 320 XE (Rambo)", "rambo"), ("Emulate Atari 5200", "5200") ), "label": "Machine" }, { "option": "fullscreen", "type": "bool", "label": "Fullscreen" }, { "option": "resolution", "type": "one_choice", "choices": screen_resolutions, "label": "Fullscreen resolution" } ]
"""Checks if atari800 is installed""" '.config/lutris/runnerfiles/xf25.zip')): return False
""" Check for correct bios files """ for filename in os.listdir(self.bios_path): return good_bios
""" Run the game. """
if "fullscreen" in self.settings["atari800"]: if self.settings["atari800"]["fullscreen"]: self.arguments = self.arguments + ["-fullscreen"] else: self.arguments = self.arguments + ["-windowed"]
if "resolution" in self.settings["atari800"]: width = resol[:resol.find("x")] height = resol[resol.find("x") + 1:] self.arguments += ["-width", "%s" % str(width), "-height", "%s" % str(height)]
if "bios_path" in self.settings["atari800"]: self.bios_path = self.settings["atari800"]["bios_path"] else: self.error_messages += ["Bios path not set."]
self.arguments += ["-%s" % self.settings["atari800"]["machine"]]
self.rom = self.settings["game"].get("rom") if not self.rom: self.error_messages += ["No disk image given."] good_bios = self.find_good_bioses() for bios in good_bios.keys(): self.arguments += ["-%s" % bios, "\"%s\"" % os.path.join(self.bios_path, good_bios[bios])] self.arguments = self.arguments + ["\"%s\"" % self.rom] command = [self.executable] + self.arguments return {"command": command, "error_messages": self.error_messages} |