mirror of
https://github.com/lutris/lutris
synced 2024-11-02 13:31:16 +00:00
MAME does can run without a ROM file
This commit is contained in:
parent
f8daf29904
commit
2114e890f3
1 changed files with 3 additions and 2 deletions
|
@ -289,8 +289,9 @@ class mame(Runner): # pylint: disable=invalid-name
|
|||
device = self.game_config.get("device")
|
||||
if not device:
|
||||
return {'error': "CUSTOM", "text": "No device is set for machine %s" % self.game_config["machine"]}
|
||||
rom = self.game_config["main_file"]
|
||||
command += ["-" + device, rom]
|
||||
rom = self.game_config.get("main_file")
|
||||
if rom:
|
||||
command += ["-" + device, rom]
|
||||
else:
|
||||
rompath = os.path.dirname(self.game_config.get("main_file"))
|
||||
if not rompath:
|
||||
|
|
Loading…
Reference in a new issue