Coverage for lutris.runners.hatari : 44%

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 Atari ST computers """
"""Atari ST computers"""
{ "option": "disk-a", "type": "file", "label": "Floppy Disk A" }, { "option": "disk-b", "type": "file", "label": "Floppy Disk B" } ]
('None', 'none'), ('Keyboard', 'keys'), ('Joystick', 'real') ]
{ "option": "bios_file", "type": "file", "label": "Bios File (TOS.img)" }, { "option": "fullscreen", "type": "bool", "label": "Fullscreen" }, { "option": "zoom", "type": "bool", "label": "Double ST low resolution" }, { "option": "borders", "type": "bool", 'label': 'Add borders to display' }, { "option": "status", "type": "bool", 'label': 'Display status bar' }, { "option": "joy0", "type": "choice", "label": "Joystick 1", "choices": joystick_choices }, { "option": "joy1", "type": "choice", "label": "Joystick 2", "choices": joystick_choices } ]
"""Run Atari ST game""" 'runner': self.__class__.__name__}
if "fullscreen" in settings and settings["fullscreen"]: else:
params.append("--zoom 2") else: params.append("--zoom 1")
if 'borders' in settings and settings["borders"]: params.append('--borders true') else: params.append('--borders false')
if 'status' in settings and settings["status"]: params.append('--statusbar true') else: params.append('--statusbar false')
if "joy1" in settings: params.append("--joy0 " + settings['joy0'])
if "joy2" in settings: params.append("--joy1 " + settings['joy1'])
if "bios_file" in settings: if os.path.exists(settings['bios_file']): params.append("--tos " + settings["bios_file"]) else: return { 'error': 'FILE_NOT_FOUND', 'file': settings['bios_file'] } else: return {'error': 'NO_BIOS'} diska = game_settings.get('disk-a') if not os.path.exists(diska): return {'error': 'FILE_NOT_FOUND', 'file': diska} params.append("--disk-a \"%s\"" % diska)
return {"command": params} |