mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
Fix command line arguments for vice
This commit is contained in:
parent
9a7721be19
commit
d6e87192a5
|
@ -105,12 +105,23 @@ class vice(Runner):
|
|||
'c64': 'VICII',
|
||||
'c128': 'VICII',
|
||||
'vic20': 'VIC',
|
||||
'pet': 'Crtc',
|
||||
'pet': 'CRTC',
|
||||
'plus4': 'TED',
|
||||
'cmbii': 'Crtc'
|
||||
'cmbii': 'CRTC'
|
||||
}
|
||||
return prefixes[machine]
|
||||
|
||||
def get_joydevs(self, machine):
|
||||
joydevs = {
|
||||
'c64': 2,
|
||||
'c128': 2,
|
||||
'vic20': 1,
|
||||
'pet': 0,
|
||||
'plus4': 2,
|
||||
'cmbii': 0
|
||||
}
|
||||
return joydevs[machine]
|
||||
|
||||
def play(self):
|
||||
machine = self.runner_config.get("machine")
|
||||
params = [self.get_executable(machine),
|
||||
|
@ -121,8 +132,8 @@ class vice(Runner):
|
|||
if self.runner_config.get("double"):
|
||||
params.append("-{}dsize".format(option_prefix))
|
||||
if self.runner_config.get("joy"):
|
||||
params += ["-joydev1", "5"]
|
||||
params += ["-joydev2", "6"]
|
||||
for dev in range(self.get_joydevs(machine)):
|
||||
params += ["-joydev{}".format(dev + 1), "4"]
|
||||
rom = self.game_config.get('main_file')
|
||||
if not rom:
|
||||
return {'error': 'CUSTOM', 'text': 'No rom provided'}
|
||||
|
|
Loading…
Reference in a new issue