mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Skip MAME roms referenced by their ID
This commit is contained in:
parent
ff21da97bf
commit
7f4e3ba672
|
@ -108,6 +108,9 @@ def get_path_from_config(game):
|
|||
if not game.config:
|
||||
logger.warning("Game %s has no configuration", game)
|
||||
return ""
|
||||
# Skip MAME roms referenced by their ID
|
||||
if game.runner_name == "mame" and "." not in game.config.game_config["main_file"]:
|
||||
return
|
||||
for key in ["exe", "main_file", "iso", "rom", "disk-a", "path", "files"]:
|
||||
if key in game.config.game_config:
|
||||
path = game.config.game_config[key]
|
||||
|
@ -129,7 +132,6 @@ def get_game_paths():
|
|||
continue
|
||||
path = get_path_from_config(game)
|
||||
if not path:
|
||||
logger.warning("Game %s has no path", game)
|
||||
continue
|
||||
game_paths[db_game["id"]] = path
|
||||
return game_paths
|
||||
|
|
Loading…
Reference in a new issue