mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Log bios path errors in MESS
This commit is contained in:
parent
50153f4bfe
commit
5d9df3224f
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
from lutris import settings
|
||||
from lutris.util.log import logger
|
||||
from lutris.runners.runner import Runner
|
||||
|
||||
|
||||
|
@ -84,8 +85,10 @@ class mess(Runner):
|
|||
def play(self):
|
||||
rompath = self.runner_config.get('rompath') or ''
|
||||
if not os.path.exists(rompath):
|
||||
logger.warning("BIOS path provided in %s doesn't exist", rompath)
|
||||
rompath = os.path.join(settings.RUNNER_DIR, "mess/bios")
|
||||
if not os.path.exists(rompath):
|
||||
logger.error("Couldn't find %s", rompath)
|
||||
return {'error': 'NO_BIOS'}
|
||||
machine = self.game_config.get('machine')
|
||||
if not machine:
|
||||
|
|
Loading…
Reference in a new issue