mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Add slot option for Removable media Slot devices
Add an option that allow the entry of slot devices that is needed on mame's romload
This commit is contained in:
parent
bcb36810dd
commit
e6b771ea97
|
@ -126,6 +126,12 @@ class mame(Runner): # pylint: disable=invalid-name
|
|||
"label": _("Arguments"),
|
||||
"help": _("Command line arguments used when launching the game"),
|
||||
},
|
||||
{
|
||||
"option": "slots",
|
||||
"type": "string",
|
||||
"label": ("Slot System"),
|
||||
"help": ("For slot devices that is needed for romsloads"),
|
||||
},
|
||||
{
|
||||
"option": "autoboot_command",
|
||||
"type": "string",
|
||||
|
@ -317,12 +323,13 @@ class mame(Runner): # pylint: disable=invalid-name
|
|||
if rompath:
|
||||
command += ["-rompath", rompath]
|
||||
command.append(self.game_config["machine"])
|
||||
slots1 = self.game_config.get("slots")
|
||||
device = self.game_config.get("device")
|
||||
if not device:
|
||||
raise GameConfigError(_("No device is set for machine %s") % self.game_config["machine"])
|
||||
rom = self.game_config.get("main_file")
|
||||
if rom:
|
||||
command += ["-" + device, rom]
|
||||
command += [slots1, "-" + device, rom]
|
||||
else:
|
||||
rompath = os.path.dirname(self.game_config.get("main_file"))
|
||||
if not rompath:
|
||||
|
|
Loading…
Reference in a new issue